Skip to content

Commit

Permalink
Update docs/2.build/1.chain-abstraction/meta-transactions.md
Browse files Browse the repository at this point in the history
Co-authored-by: Damián Parrino <bucanero@users.noreply.github.com>
  • Loading branch information
SurgeCode and bucanero authored Jul 22, 2024
1 parent e942c32 commit 3193a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/2.build/1.chain-abstraction/meta-transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Fortunately, this is easy to resolve. Adding multiple full access keys to the NE

To add a key, generate a new key pair and use the original account object to call the `addKey` method:

```typescript
```js
const keyPair = nearAPI.KeyPair.fromRandom("ed25519");

const receipt = await account.addKey(keyPair.getPublicKey().toString())
Expand Down

0 comments on commit 3193a66

Please sign in to comment.