Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
bugfix - subp vm - unpad storage lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavis committed Jun 2, 2016
1 parent 95a867c commit f98982b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subproviders/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ FallbackStorageTrie.prototype.get = function(key, cb){
self._fetchStorage(keyHex, function(err, rawValue){
if (err) return cb(err)
var value = ethUtil.toBuffer(rawValue)
value = ethUtil.unpad(value)
var encodedValue = ethUtil.rlp.encode(value)
cb(null, encodedValue)
})
Expand Down

0 comments on commit f98982b

Please sign in to comment.