-
Notifications
You must be signed in to change notification settings - Fork 549
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cosmosclient): add tx options (incl memo setting) (backport #4276)…
… (#4279) * feat(cosmosclient): add tx options (incl memo setting) (#4276) (cherry picked from commit 6bcbe4e) * Update changelog.md Co-authored-by: Danilo Pantani <danpantani@gmail.com> * Update changelog.md --------- Co-authored-by: Julien Robert <julien@rbrt.fr> Co-authored-by: Danilo Pantani <danpantani@gmail.com>
- Loading branch information
1 parent
04dbd45
commit f7f0c84
Showing
5 changed files
with
68 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package cosmosclient | ||
|
||
// TxOptions contains options for creating a transaction. | ||
// It is used by the CreateTxWithOptions method. | ||
type TxOptions struct { | ||
// Memo is the memo to be used for the transaction. | ||
Memo string | ||
|
||
// GasLimit is the gas limit to be used for the transaction. | ||
// If GasLimit is set to 0, the gas limit will be automatically calculated. | ||
GasLimit uint64 | ||
|
||
// Fees is the fees to be used for the transaction. | ||
Fees string | ||
} |