diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-20 17:19:07 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-20 17:19:07 +0800 |
commit | fd19142c0db3d2b6651989f5389944f3e211d84f (patch) | |
tree | 96916597bc7366fad5043acb6df7a2711675f504 /ethchain/block.go | |
parent | a2fb265563a3a6eb80efc5720bb0c6f3fec6f397 (diff) | |
download | dexon-fd19142c0db3d2b6651989f5389944f3e211d84f.tar dexon-fd19142c0db3d2b6651989f5389944f3e211d84f.tar.gz dexon-fd19142c0db3d2b6651989f5389944f3e211d84f.tar.bz2 dexon-fd19142c0db3d2b6651989f5389944f3e211d84f.tar.lz dexon-fd19142c0db3d2b6651989f5389944f3e211d84f.tar.xz dexon-fd19142c0db3d2b6651989f5389944f3e211d84f.tar.zst dexon-fd19142c0db3d2b6651989f5389944f3e211d84f.zip |
No longer store script directly in the state tree
Diffstat (limited to 'ethchain/block.go')
-rw-r--r-- | ethchain/block.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethchain/block.go b/ethchain/block.go index aac50ccb1..ca84dc19c 100644 --- a/ethchain/block.go +++ b/ethchain/block.go @@ -122,7 +122,7 @@ func (block *Block) Transactions() []*Transaction { } func (block *Block) PayFee(addr []byte, fee *big.Int) bool { - contract := block.state.GetContract(addr) + contract := block.state.GetStateObject(addr) // If we can't pay the fee return if contract == nil || contract.Amount.Cmp(fee) < 0 /* amount < fee */ { fmt.Println("Contract has insufficient funds", contract.Amount, fee) |