Skip to content

Commit

Permalink
Fix an error related to mesh wallet (#6771)
Browse files Browse the repository at this point in the history
  • Loading branch information
zliu41 authored Jan 3, 2025
1 parent d061d75 commit 8529613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/docusaurus/static/code/generate-keys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const wallet = new MeshWallet({
})

// obtain the address associated with the secret key
const address = wallet.getUnusedAddresses()[0]
const address = (await wallet.getUnusedAddresses())[0]

// derive PubKeyHash from the address
const pubKeyHash = deserializeAddress(address).pubKeyHash
Expand Down
2 changes: 1 addition & 1 deletion doc/docusaurus/static/code/mint-token-for-auction.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const token = {
}
}

const walletAddress = wallet.getUsedAddresses()[0]
const walletAddress = (await wallet.getUsedAddresses())[0]

// The redeemer for the minting policy, corresponding to `()`.
const redeemer = {
Expand Down

0 comments on commit 8529613

Please sign in to comment.