mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-09 05:22:13 +00:00
state: fix CreateAddress to use Address not Word
This commit is contained in:
parent
e6da48880b
commit
7bf34b1883
@ -126,7 +126,7 @@ func (vas *VMAppState) CreateAccount(creator *vm.Account) (*vm.Account, error) {
|
||||
nonce := creator.Nonce
|
||||
creator.Nonce += 1
|
||||
|
||||
addr := vm.RightPadWord(NewContractAddress(creator.Address[:], nonce))
|
||||
addr := vm.RightPadWord(NewContractAddress(creator.Address.Address(), nonce))
|
||||
|
||||
// Create account from address.
|
||||
account, deleted := unpack(vas.accounts[addr.String()])
|
||||
|
Loading…
x
Reference in New Issue
Block a user