Skip to content

Commit

Permalink
Update gaslesstransaction.md
Browse files Browse the repository at this point in the history
Fixed wrong syntax and renamed reserved nextJS variable(module)
  • Loading branch information
jaydhales authored Oct 20, 2023
1 parent b154eef commit 804f976
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/tutorials/nextjs/gaslesstransaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ With our interface created lets start scaffolding out our component:

const Minter: React.FC<Props> = ({ smartAccount, address, provider }) => {
return(
<
{address && <button onClick={handleMint} className={styles.connect}>Mint NFT</button>}>
<>
{address && <button onClick={handleMint} className={styles.connect}>Mint NFT</button>}
</>
)
}
Expand Down Expand Up @@ -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
})
Expand All @@ -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)
Expand Down Expand Up @@ -524,4 +524,4 @@ export default Minter;
```


</details>
</details>

0 comments on commit 804f976

Please sign in to comment.