Skip to content

Commit

Permalink
print act hash
Browse files Browse the repository at this point in the history
  • Loading branch information
envestcc committed Jul 26, 2024
1 parent bbd0fac commit b7c3f0f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ioctl/cmd/action/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,12 @@ func SendActionAndResponse(elp action.Envelope, signer string) (*iotexapi.SendAc

// Execute sends signed execution transaction to blockchain
func Execute(contract string, amount *big.Int, bytecode []byte) error {
_, err := ExecuteAndResponse(contract, amount, bytecode)
return err
resp, err := ExecuteAndResponse(contract, amount, bytecode)
if err != nil {
return err
}
outputActionInfo(resp.ActionHash)
return nil
}

// ExecuteAndResponse sends signed execution transaction to blockchain and with response and error return
Expand Down

0 comments on commit b7c3f0f

Please sign in to comment.