Skip to content

Commit

Permalink
Name var everywhere
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Broadhurst <[email protected]>
  • Loading branch information
peterbroadhurst committed Dec 21, 2023
1 parent b923bbd commit 0638746
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions internal/blockchain/ethereum/ethereum.go
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ func (e *Ethereum) applyOptions(ctx context.Context, body, options map[string]in
return body, nil
}

func (e *Ethereum) invokeContractMethod(ctx context.Context, address, signingKey string, abi *abi.Entry, requestID string, input []interface{}, errors []*abi.Entry, options map[string]interface{}) (bool, error) {
func (e *Ethereum) invokeContractMethod(ctx context.Context, address, signingKey string, abi *abi.Entry, requestID string, input []interface{}, errors []*abi.Entry, options map[string]interface{}) (submissionRejected bool, err error) {
if e.metrics.IsMetricsEnabled() {
e.metrics.BlockchainTransaction(address, abi.Name)
}
Expand Down Expand Up @@ -736,7 +736,7 @@ func (e *Ethereum) SubmitNetworkAction(ctx context.Context, nsOpID string, signi
return err
}

func (e *Ethereum) DeployContract(ctx context.Context, nsOpID, signingKey string, definition, contract *fftypes.JSONAny, input []interface{}, options map[string]interface{}) (bool, error) {
func (e *Ethereum) DeployContract(ctx context.Context, nsOpID, signingKey string, definition, contract *fftypes.JSONAny, input []interface{}, options map[string]interface{}) (submissionRejected bool, err error) {
if e.metrics.IsMetricsEnabled() {
e.metrics.BlockchainContractDeployment()
}
Expand All @@ -754,7 +754,7 @@ func (e *Ethereum) DeployContract(ctx context.Context, nsOpID, signingKey string
if signingKey != "" {
body["from"] = signingKey
}
body, err := e.applyOptions(ctx, body, options)
body, err = e.applyOptions(ctx, body, options)
if err != nil {
return true, err
}
Expand Down
4 changes: 2 additions & 2 deletions internal/blockchain/fabric/fabric.go
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ func (f *Fabric) ResolveSigningKey(ctx context.Context, signingKeyInput string,
return signingKeyInput, nil
}

func (f *Fabric) invokeContractMethod(ctx context.Context, channel, chaincode, methodName, signingKey, requestID string, prefixItems []*PrefixItem, input map[string]interface{}, options map[string]interface{}) (bool, error) {
func (f *Fabric) invokeContractMethod(ctx context.Context, channel, chaincode, methodName, signingKey, requestID string, prefixItems []*PrefixItem, input map[string]interface{}, options map[string]interface{}) (submissionRejected bool, err error) {
body, err := f.buildFabconnectRequestBody(ctx, channel, chaincode, methodName, signingKey, requestID, prefixItems, input, options)
if err != nil {
return true, err
Expand Down Expand Up @@ -770,7 +770,7 @@ func (f *Fabric) buildFabconnectRequestBody(ctx context.Context, channel, chainc
return body, nil
}

func (f *Fabric) DeployContract(ctx context.Context, nsOpID, signingKey string, definition, contract *fftypes.JSONAny, input []interface{}, options map[string]interface{}) (bool, error) {
func (f *Fabric) DeployContract(ctx context.Context, nsOpID, signingKey string, definition, contract *fftypes.JSONAny, input []interface{}, options map[string]interface{}) (submissionRejected bool, err error) {
return true, i18n.NewError(ctx, coremsgs.MsgNotSupportedByBlockchainPlugin)
}

Expand Down
4 changes: 2 additions & 2 deletions internal/blockchain/tezos/tezos.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func (t *Tezos) SubmitNetworkAction(ctx context.Context, nsOpID string, signingK
return nil
}

func (t *Tezos) DeployContract(ctx context.Context, nsOpID, signingKey string, definition, contract *fftypes.JSONAny, input []interface{}, options map[string]interface{}) (bool, error) {
func (t *Tezos) DeployContract(ctx context.Context, nsOpID, signingKey string, definition, contract *fftypes.JSONAny, input []interface{}, options map[string]interface{}) (submissionRejected bool, err error) {
return true, i18n.NewError(ctx, coremsgs.MsgNotSupportedByBlockchainPlugin)
}

Expand Down Expand Up @@ -516,7 +516,7 @@ func (t *Tezos) recoverFFI(ctx context.Context, parsedMethod interface{}) (*ffty
return methodInfo.method, methodInfo.errors, nil
}

func (t *Tezos) invokeContractMethod(ctx context.Context, address, methodName, signingKey, requestID string, michelsonInput micheline.Parameters, options map[string]interface{}) (bool, error) {
func (t *Tezos) invokeContractMethod(ctx context.Context, address, methodName, signingKey, requestID string, michelsonInput micheline.Parameters, options map[string]interface{}) (submissionRejected bool, err error) {
if t.metrics.IsMetricsEnabled() {
t.metrics.BlockchainTransaction(address, methodName)
}
Expand Down

0 comments on commit 0638746

Please sign in to comment.