aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/block_manager.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-15 08:34:18 +0800
committerobscuren <geffobscura@gmail.com>2014-02-15 08:34:18 +0800
commit73fd358d940418b15dec850f50407bd2e504d88c (patch)
treea1202689cf2e715fef9c31fa17ca4ad241de1d0f /ethchain/block_manager.go
parentf247f0c518c6e848061462e3234f32cc7d854a46 (diff)
downloaddexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.gz
dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.zst
dexon-73fd358d940418b15dec850f50407bd2e504d88c.zip
Removed RlpValue in favour of Value
Diffstat (limited to 'ethchain/block_manager.go')
-rw-r--r--ethchain/block_manager.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/ethchain/block_manager.go b/ethchain/block_manager.go
index 92f20e253..7d8397790 100644
--- a/ethchain/block_manager.go
+++ b/ethchain/block_manager.go
@@ -553,9 +553,9 @@ out:
// Load the value in storage and push it on the stack
x := bm.stack.Pop()
// decode the object as a big integer
- decoder := ethutil.NewRlpValueFromBytes([]byte(contract.State().Get(x.String())))
+ decoder := ethutil.NewValueFromBytes([]byte(contract.State().Get(x.String())))
if !decoder.IsNil() {
- bm.stack.Push(decoder.AsBigInt())
+ bm.stack.Push(decoder.BigInt())
} else {
bm.stack.Push(ethutil.BigFalse)
}
@@ -618,10 +618,10 @@ func getContractMemory(block *Block, contractAddr []byte, memAddr *big.Int) *big
val := contract.State().Get(memAddr.String())
// decode the object as a big integer
- decoder := ethutil.NewRlpValueFromBytes([]byte(val))
+ decoder := ethutil.NewValueFromBytes([]byte(val))
if decoder.IsNil() {
return ethutil.BigFalse
}
- return decoder.AsBigInt()
+ return decoder.BigInt()
}