diff --git a/packages/bridge-ui/src/components/form/BridgeForm.svelte b/packages/bridge-ui/src/components/form/BridgeForm.svelte index 111c31f8442..55d5a2c46fb 100644 --- a/packages/bridge-ui/src/components/form/BridgeForm.svelte +++ b/packages/bridge-ui/src/components/form/BridgeForm.svelte @@ -196,8 +196,11 @@ // tx.chainId is not set immediately but we need it later. set it // manually. tx.chainId = $fromChain.id; + const storageKey = `transactions-${await ( + await $signer.getAddress() + ).toLowerCase()}`; let transactions: BridgeTransaction[] = JSON.parse( - await window.localStorage.getItem("transactions") + await window.localStorage.getItem(storageKey) ); const bridgeTransaction: BridgeTransaction = { @@ -215,7 +218,7 @@ } await window.localStorage.setItem( - "transactions", + storageKey, JSON.stringify(transactions) ); diff --git a/packages/bridge-ui/src/domain/chain.ts b/packages/bridge-ui/src/domain/chain.ts index 13842cc70e1..bd001445ef5 100644 --- a/packages/bridge-ui/src/domain/chain.ts +++ b/packages/bridge-ui/src/domain/chain.ts @@ -84,7 +84,7 @@ export const mainnet: WagmiChain = { export const taiko: WagmiChain = { id: CHAIN_ID_TAIKO, - name: "Taiko A1", + name: "Taiko Snæfellsjökull", network: "", nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { diff --git a/packages/bridge-ui/src/erc20/bridge.ts b/packages/bridge-ui/src/erc20/bridge.ts index 696429ced0a..0fd6ff50f76 100644 --- a/packages/bridge-ui/src/erc20/bridge.ts +++ b/packages/bridge-ui/src/erc20/bridge.ts @@ -151,7 +151,9 @@ class ERC20Bridge implements Bridge { chains[opts.message.destChainId.toNumber()].headerSyncAddress, }); - return await contract.processMessage(opts.message, proof); + return await contract.processMessage(opts.message, proof, { + gasLimit: BigNumber.from(1200000), + }); } else { return await contract.retryMessage(opts.message, false); } diff --git a/packages/bridge-ui/src/eth/bridge.ts b/packages/bridge-ui/src/eth/bridge.ts index 5d5032b9db8..f32bbfd6143 100644 --- a/packages/bridge-ui/src/eth/bridge.ts +++ b/packages/bridge-ui/src/eth/bridge.ts @@ -103,7 +103,9 @@ class ETHBridge implements BridgeInterface { const proof = await this.prover.GenerateProof(proofOpts); - return await contract.processMessage(opts.message, proof); + return await contract.processMessage(opts.message, proof, { + gasLimit: BigNumber.from(1000000), + }); } else { return await contract.retryMessage(opts.message); } diff --git a/packages/bridge-ui/src/storage/service.ts b/packages/bridge-ui/src/storage/service.ts index 7506520d53a..d0376066cdc 100644 --- a/packages/bridge-ui/src/storage/service.ts +++ b/packages/bridge-ui/src/storage/service.ts @@ -29,7 +29,7 @@ class StorageService implements Transactioner { chainID?: number ): Promise { const txs: BridgeTransaction[] = JSON.parse( - this.storage.getItem("transactions") + this.storage.getItem(`transactions-${address.toLowerCase()}`) ); const bridgeTxs: BridgeTransaction[] = [];