All numbers are in BigEndian

This commit is contained in:
Jae Kwon
2015-05-03 17:42:46 -07:00
parent 1c577c36f1
commit 3c96890d2d
9 changed files with 195 additions and 86 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ func (cache *TxCache) AddLog(log *vm.Log) {
func NewContractAddress(caller []byte, nonce uint64) []byte {
temp := make([]byte, 32+8)
copy(temp, caller)
PutUint64LE(temp[32:], nonce)
PutUint64BE(temp[32:], nonce)
return sha3.Sha3(temp)[:20]
}