Commit 38978aba authored by yann300's avatar yann300

fix value convertion

parent 80535232
...@@ -76,7 +76,7 @@ function context (self, tx) { ...@@ -76,7 +76,7 @@ function context (self, tx) {
function value (v) { function value (v) {
try { try {
if (v.indexOf && v.indexOf('0x') === 0) { if (v.indexOf && v.indexOf('0x') === 0) {
return (new BN(v.replace('0x', ''), 12)).toString(10) return (new BN(v.replace('0x', ''), 16)).toString(10)
} else { } else {
return v.toString(10) return v.toString(10)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment