Skip to content

Commit

Permalink
fix(relayer): gas limit + use loading as priorioty on bridge form (#487)
Browse files Browse the repository at this point in the history
* relayer increase gas limit, still cant estimate, and show loader if there are pending transcations

* loading priority button
  • Loading branch information
cyberhorsey authored Dec 27, 2022
1 parent 36138ad commit 3747d4c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
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

0 comments on commit 3747d4c

Please sign in to comment.