Skip to content

Commit

Permalink
Remove deprecated Buffer constructor (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
whymarrh authored Aug 22, 2019
1 parent fcc74b1 commit 77071fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/KeyringController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ describe('KeyringController', () => {
});

it('should sign personal message', async () => {
const data = ethUtil.bufferToHex(new Buffer('Hello from test', 'utf8'));
const data = ethUtil.bufferToHex(Buffer.from('Hello from test', 'utf8'));
const account = initialState.keyrings[0].accounts[0];
const signature = await keyringController.signPersonalMessage({ data, from: account });
expect(signature).not.toBe('');
Expand Down

0 comments on commit 77071fd

Please sign in to comment.