mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-16 21:14:31 +00:00
(╯°□°)╯︵ ┻━┻
This commit is contained in:
@@ -90,5 +90,5 @@ func createAddress(creator *Account) Word256 {
|
||||
temp := make([]byte, 32+8)
|
||||
copy(temp, creator.Address[:])
|
||||
PutUint64(temp[32:], nonce)
|
||||
return RightPadWord256(sha3.Sha3(temp)[:20])
|
||||
return LeftPadWord256(sha3.Sha3(temp)[:20])
|
||||
}
|
||||
|
||||
+2
-2
@@ -64,10 +64,10 @@ func TestSubcurrency(t *testing.T) {
|
||||
st := newAppState()
|
||||
// Create accounts
|
||||
account1 := &Account{
|
||||
Address: RightPadWord256(makeBytes(20)),
|
||||
Address: LeftPadWord256(makeBytes(20)),
|
||||
}
|
||||
account2 := &Account{
|
||||
Address: RightPadWord256(makeBytes(20)),
|
||||
Address: LeftPadWord256(makeBytes(20)),
|
||||
}
|
||||
st.accounts[account1.Address.String()] = account1
|
||||
st.accounts[account2.Address.String()] = account2
|
||||
|
||||
Reference in New Issue
Block a user