mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 06:31:57 +00:00
little fixes to vm and endianess
This commit is contained in:
+1
-1
@@ -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)
|
||||
PutUint64(temp[32:], nonce)
|
||||
PutUint64LE(temp[32:], nonce)
|
||||
return sha3.Sha3(temp)[:20]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user