Skip to content

Commit

Permalink
(fix) The chain gateway address was hardwired in the deployment scrip…
Browse files Browse the repository at this point in the history
…t, so we were using the wrong one (or at least, being confused about which one was in use). Need to align everything, but this makes the bridge txn succeed
  • Loading branch information
rrw-zilliqa committed Jul 25, 2024
1 parent 7066618 commit 0baa9b1
Show file tree
Hide file tree
Showing 9 changed files with 801 additions and 50 deletions.
5 changes: 3 additions & 2 deletions bridge-web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
import { formatEther, formatUnits, getAbiItem, parseUnits } from "viem";
import { Id, toast } from "react-toastify";
import { tokenManagerAbi } from "./abi/TokenManager";
import { ZilTokenManagerAbi } from "./abi/ZilTokenManager";
import Navbar from "./components/Navbar";
import useRecipientInput from "./hooks/useRecipientInput";
import RecipientInput from "./components/RecipientInput";
Expand Down Expand Up @@ -183,7 +184,7 @@ function App() {
mode: "prepared",
request: {
address: token.tokenManagerAddress,
abi: tokenManagerAbi,
abi: ZilTokenManagerAbi,
args: [
addressForTokenManager,
BigInt(toChainConfig.chainId),
Expand All @@ -194,7 +195,7 @@ function App() {
account: account!,
value: transferAmount ?? 0n,
functionName: "transfer",
gas: 600_000n,
gas: 6_000_000n,
type: "legacy",
},
});
Expand Down
Loading

0 comments on commit 0baa9b1

Please sign in to comment.