From 804f97679b7cd8385db0315ed12498d7461b2709 Mon Sep 17 00:00:00 2001 From: James Osunkiyesi <69529548+jaydhales@users.noreply.github.com> Date: Fri, 20 Oct 2023 20:24:42 +0100 Subject: [PATCH] Update gaslesstransaction.md Fixed wrong syntax and renamed reserved nextJS variable(module) --- docs/tutorials/nextjs/gaslesstransaction.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/tutorials/nextjs/gaslesstransaction.md b/docs/tutorials/nextjs/gaslesstransaction.md index fe15f165..954fec4d 100644 --- a/docs/tutorials/nextjs/gaslesstransaction.md +++ b/docs/tutorials/nextjs/gaslesstransaction.md @@ -57,8 +57,8 @@ With our interface created lets start scaffolding out our component: const Minter: React.FC = ({ smartAccount, address, provider }) => { return( - < - {address && }> + <> + {address && } ) } @@ -365,7 +365,7 @@ const connect = async () => { ); setProvider(web3Provider) - const module = await ECDSAOwnershipValidationModule.create({ + const _module = await ECDSAOwnershipValidationModule.create({ signer: web3Provider.getSigner(), moduleAddress: DEFAULT_ECDSA_OWNERSHIP_MODULE }) @@ -375,8 +375,8 @@ const connect = async () => { bundler: bundler, paymaster: paymaster, entryPointAddress: DEFAULT_ENTRYPOINT_ADDRESS, - defaultValidationModule: module, - activeValidationModule: module + defaultValidationModule: _module, + activeValidationModule: _module }) setAddress( await biconomySmartAccount.getAccountAddress()) setSmartAccount(biconomySmartAccount) @@ -524,4 +524,4 @@ export default Minter; ``` - \ No newline at end of file +