diff --git a/src/solidity/types/Address.js b/src/solidity/types/Address.js index 2a06860cf1..370dfc7dc1 100644 --- a/src/solidity/types/Address.js +++ b/src/solidity/types/Address.js @@ -1,6 +1,5 @@ 'use strict' var util = require('./util') -var utileth = require('ethereumjs-util') function Address () { this.storageSlots = 1 @@ -10,7 +9,7 @@ function Address () { Address.prototype.decodeFromStorage = function (location, storageContent) { var value = util.extractHexByte(location, storageContent, this.storageBytes) - return '0x' + utileth.unpad(value).toUpperCase() + return '0x' + value.toUpperCase() } module.exports = Address diff --git a/test/solidity/storageDecoder.js b/test/solidity/storageDecoder.js index aac61728a2..646512557f 100644 --- a/test/solidity/storageDecoder.js +++ b/test/solidity/storageDecoder.js @@ -100,7 +100,7 @@ function testByteStorage (st) { decoded = stateDecoder.solidityState({}, output.sources, 'byteStorage') st.equal(decoded['b1'], false) - st.equal(decoded['a1'], '0x') + st.equal(decoded['a1'], '0x0000000000000000000000000000000000000000') st.equal(decoded['b2'], false) st.equal(decoded['dynb1'], '0x') st.equal(decoded['stab'], '0x')