little fixes to vm and endianess

This commit is contained in:
Ethan Buchman
2015-04-17 20:51:01 -07:00
parent a28c1c83fc
commit e702303e16
6 changed files with 32 additions and 25 deletions
+1 -1
View File
@@ -89,6 +89,6 @@ func createAddress(creator *Account) Word256 {
creator.Nonce += 1
temp := make([]byte, 32+8)
copy(temp, creator.Address[:])
PutUint64(temp[32:], nonce)
PutUint64LE(temp[32:], nonce)
return LeftPadWord256(sha3.Sha3(temp)[:20])
}