This commit is contained in:
Marek Kotewicz
2015-01-27 15:20:22 +01:00
parent 42a25f2f26
commit 09f633596d
6 changed files with 46 additions and 6 deletions

View File

@@ -823,6 +823,38 @@ describe('abi', function() {
});
it('should parse 0x value', function () {
// given
var d = clone(description);
d[0].outputs = [
{ type: 'int' }
];
// when
var parser = abi.outputParser(d);
// then
assert.equal(parser.test("0x")[0], 0);
});
it('should parse 0x value', function () {
// given
var d = clone(description);
d[0].outputs = [
{ type: 'uint' }
];
// when
var parser = abi.outputParser(d);
// then
assert.equal(parser.test("0x")[0], 0);
});
});
});