Fixed a minor issue on crashed contracts

This commit is contained in:
obscuren
2014-02-24 13:15:34 +01:00
parent f2234264ed
commit 6c7255cde2
2 changed files with 6 additions and 2 deletions

View File

@ -221,8 +221,9 @@ func (block *Block) Undo() {
func (block *Block) MakeContract(tx *Transaction) {
contract := MakeContract(tx, NewState(block.state))
block.contractStates[string(tx.Hash()[12:])] = contract.state
if contract != nil {
block.contractStates[string(tx.Hash()[12:])] = contract.state
}
}
/////// Block Encoding