Browse Source

state: fix CreateAddress to use Address not Word

pull/37/head
Ethan Buchman 10 years ago
parent
commit
7bf34b1883
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      state/vm_app_state.go

+ 1
- 1
state/vm_app_state.go View File

@ -126,7 +126,7 @@ func (vas *VMAppState) CreateAccount(creator *vm.Account) (*vm.Account, error) {
nonce := creator.Nonce nonce := creator.Nonce
creator.Nonce += 1 creator.Nonce += 1
addr := vm.RightPadWord(NewContractAddress(creator.Address[:], nonce))
addr := vm.RightPadWord(NewContractAddress(creator.Address.Address(), nonce))
// Create account from address. // Create account from address.
account, deleted := unpack(vas.accounts[addr.String()]) account, deleted := unpack(vas.accounts[addr.String()])


Loading…
Cancel
Save