aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/block.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethchain/block.go')
-rw-r--r--ethchain/block.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/ethchain/block.go b/ethchain/block.go
index 472ae134a..7ca44a47d 100644
--- a/ethchain/block.go
+++ b/ethchain/block.go
@@ -131,6 +131,11 @@ func (block *Block) GetContract(addr []byte) *Contract {
return nil
}
+ value := ethutil.NewValueFromBytes([]byte(data))
+ if value.Len() == 2 {
+ return nil
+ }
+
contract := &Contract{}
contract.RlpDecode([]byte(data))