mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-21 07:24:36 +00:00
All numbers are in BigEndian
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)
|
||||
PutUint64LE(temp[32:], nonce)
|
||||
PutUint64BE(temp[32:], nonce)
|
||||
return sha3.Sha3(temp)[:20]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user