Fixed contract-address bug (nonce was not zero-stripped).

This commit is contained in:
ricmoo 2017-03-10 17:16:58 -05:00
parent b097e48efc
commit 9bed4096b8
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ function getContractAddress(transaction) {
return getAddress('0x' + keccak256(rlp.encode([
getAddress(transaction.from),
convert.hexlify(nonce, 'nonce')
convert.stripZeros(convert.hexlify(nonce, 'nonce'))
])).substring(26));
}