Skip to content

Commit

Permalink
fix bug for call offchain method
Browse files Browse the repository at this point in the history
  • Loading branch information
viteLiz committed Dec 6, 2019
1 parent 20561df commit 1ebb5f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcapi/api/contract_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (c *ContractApi) CallOffChainMethod(param CallOffChainMethodParam) ([]byte,
}
}
var snapshotHash *types.Hash
if param.SnapshotHash != nil {
if param.SnapshotHash == nil {
snapshotHash = &c.chain.GetLatestSnapshotBlock().Hash
} else {
snapshotHash = param.SnapshotHash
Expand Down

0 comments on commit 1ebb5f1

Please sign in to comment.