From 7bf34b18832bcccba24665bbf0d5f3d7f8650ab8 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Sat, 21 Mar 2015 13:57:09 -0700 Subject: [PATCH] state: fix CreateAddress to use Address not Word --- state/vm_app_state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state/vm_app_state.go b/state/vm_app_state.go index ad25482fb..1005fc3dd 100644 --- a/state/vm_app_state.go +++ b/state/vm_app_state.go @@ -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()])