Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(relayer): gas limit + use loading as priorioty on bridge form #487

Merged
merged 3 commits into from
Dec 27, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions packages/bridge-ui/src/components/form/BridgeForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -315,15 +315,7 @@

<Memo bind:memo />

{#if !requiresAllowance}
<button
class="btn btn-accent w-full"
on:click={bridge}
disabled={btnDisabled}
>
{$_("home.bridge")}
</button>
{:else if loading}
{#if loading}
<button class="btn btn-accent w-full" disabled={true}>
<LottiePlayer
src="/lottie/loader.json"
Expand All @@ -337,6 +329,14 @@
controlsLayout={[]}
/>
</button>
{:else if !requiresAllowance}
<button
class="btn btn-accent w-full"
on:click={bridge}
disabled={btnDisabled}
>
{$_("home.bridge")}
</button>
{:else}
<button
class="btn btn-accent w-full mt-6"
Expand Down
2 changes: 1 addition & 1 deletion packages/relayer/message/process_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (p *Processor) sendProcessMessageCall(
// auth.GasLimit = gas
// log.Infof("gasLimit: %v", gas)
// }
auth.GasLimit = 800000
auth.GasLimit = 1200000

// process the message on the destination bridge.
tx, err := p.destBridge.ProcessMessage(auth, event.Message, proof)
Expand Down