1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Merge pull request #1179 from MetaMask/FixHexEncoding

Fix hex encoding of message to create valid hex strings
This commit is contained in:
kumavis 2017-03-07 12:02:28 -08:00 committed by GitHub
commit 9e0a4fc6ed

View File

@ -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')