Skip to content

Commit

Permalink
Merge pull request #174 from kaleido-io/contracts
Browse files Browse the repository at this point in the history
Add nil check when looking up contracts
  • Loading branch information
peterbroadhurst authored Nov 19, 2021
2 parents 0c1d3d8 + 080179b commit 44d3841
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/contractgateway/smartcontractgw.go
Original file line number Diff line number Diff line change
Expand Up @@ -1184,5 +1184,8 @@ func (g *smartContractGW) resolveAddressOrName(id string) (deployMsg *messages.D
ABIType: contractregistry.LocalABI,
Name: info.ABI,
}, false)
return result.Contract, registeredName, info, err
if result != nil {
deployMsg = result.Contract
}
return deployMsg, registeredName, info, err
}

0 comments on commit 44d3841

Please sign in to comment.