From 2674fc54c0bb396a3649dcfb36e93bd0be8b9888 Mon Sep 17 00:00:00 2001 From: Corban Riley Date: Fri, 10 May 2024 10:14:56 -0400 Subject: [PATCH] Name waas mode 'Embedded' --- examples/react/src/components/Homepage.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/examples/react/src/components/Homepage.tsx b/examples/react/src/components/Homepage.tsx index 6a57e383..5e8a68ef 100644 --- a/examples/react/src/components/Homepage.tsx +++ b/examples/react/src/components/Homepage.tsx @@ -248,14 +248,10 @@ export const Homepage = () => { } // const [account] = await walletClient.getAddresses() - const contractAbiInterface = new ethers.utils.Interface([ - 'function demo()' - ]) + const contractAbiInterface = new ethers.utils.Interface(['function demo()']) // sendTransaction({ to: account, value: BigInt(0), gas: null }) - const data = contractAbiInterface.encodeFunctionData( - 'demo', [] - ) as `0x${string}` + const data = contractAbiInterface.encodeFunctionData('demo', []) as `0x${string}` sendTransaction({ to: '0x37470dac8a0255141745906c972e414b1409b470', @@ -654,7 +650,7 @@ export const Homepage = () => {