Skip to content

Commit

Permalink
add some docs for contract function result
Browse files Browse the repository at this point in the history
  • Loading branch information
QuestofIranon committed Feb 20, 2020
1 parent 3ec6bba commit 80ec59e
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions contract_function_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,21 @@ import (
"github.com/hashgraph/hedera-sdk-go/proto"
)

// ContractFunctionResult is the result returned by a call to a smart contract function. This is The response to
// a ContractCallQuery, and is in the record for a ContractCallQuery.
type ContractFunctionResult struct {
ContractID *ContractID
// ContractID is the smart contract instance whose function was called
ContractID *ContractID
// ContractCallResult is the result returned by the function
ContractCallResult []byte
ErrorMessage string
Bloom []byte
GasUsed uint64
LogInfo []ContractLogInfo
// ErrorMessage is the message returned in the case there was an error during smart contract execution
ErrorMessage string
// Bloom is the bloom filter for record
Bloom []byte
// GasUsed is the amount of gas used to execute the contract function
GasUsed uint64
// LogInfo is the log info for events returned by the function
LogInfo []ContractLogInfo
}

func (result ContractFunctionResult) GetBool(index uint64) bool {
Expand Down

0 comments on commit 80ec59e

Please sign in to comment.