Merge pull request #1179 from MetaMask/FixHexEncoding

Fix hex encoding of message to create valid hex strings
feature/default_network_editable
kumavis 8 years ago committed by GitHub
commit 9e0a4fc6ed
  1. 2
      test/unit/personal-message-manager-test.js

@ -88,7 +88,7 @@ describe('Personal Message Manager', function() {
})
describe('#normalizeMsgData', function() {
it('converts text to a utf8 buffer', function() {
it('converts text to a utf8 hex string', function() {
var input = 'hello'
var output = messageManager.normalizeMsgData(input)
assert.equal(output, '0x68656c6c6f', 'predictably hex encoded')

Loading…
Cancel
Save