Skip to content

Commit

Permalink
Update rpc-api.md: Fixed Typo (MetaMask#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmicksai authored Jan 30, 2022
1 parent b67531a commit dc1bc1c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/guide/rpc-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,11 @@ const ethUtil = require('ethereumjs-util');
const encryptedMessage = ethUtil.bufferToHex(
Buffer.from(
JSON.stringify(
sigUtil.encrypt(
{
publicKey: encryptionPublicKey,
data: 'hello world!,
version: 'x25519-xsalsa20-poly1305',
}
)
sigUtil.encrypt({
publicKey: encryptionPublicKey,
data: 'hello world!',
version: 'x25519-xsalsa20-poly1305',
})
),
'utf8'
)
Expand Down

0 comments on commit dc1bc1c

Please sign in to comment.