diff --git a/src/components/Transaction/index.tsx b/src/components/Transaction/index.tsx index dbbaffae..56fc6572 100644 --- a/src/components/Transaction/index.tsx +++ b/src/components/Transaction/index.tsx @@ -45,9 +45,11 @@ export const Transaction = () => { if (!txData?.to || !accountConnected?.address) return; try { setIsLoading(true); + const decimals = api.apiPromise?.registry.chainDecimals[0] ?? 18; + const convertedValue = BigInt(amount * 10 ** decimals); const transfer = api.apiPromise?.tx.balances.transfer( txData.to, - amount + convertedValue ); await transfer?.signAndSend(accountConnected?.address, { signer: accountConnected?.signer, diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 86feedea..80c83c7b 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -34,7 +34,7 @@ Router.events.on("routeChangeComplete", () => { }); export const squidClient = new ApolloClient({ - uri: "https://squid.subsquid.io/ink-multisig-shibuya/v/v3/graphql", + uri: "https://squid.subsquid.io/ink-multisig-shibuya/v/v2/graphql", cache: new InMemoryCache(), });