Skip to content

Commit

Permalink
add godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
leohhhn committed Feb 8, 2024
1 parent b27064e commit e74cac5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gno.land/pkg/gnoclient/client_txs.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ type MsgCall struct {
Send string // Send amount
}

// MsgRun - syntax sugar for vm.MsgRun
type MsgRun struct {
Package *std.MemPackage // Package to run
Send string // Send amount
}

// Call executes a contract call on the blockchain.
// Call executes a one or more MsgCall calls on the blockchain.
func (c *Client) Call(cfg BaseTxCfg, msgs ...MsgCall) (*ctypes.ResultBroadcastTxCommit, error) {
// Validate required client fields.
if err := c.validateSigner(); err != nil {
Expand Down Expand Up @@ -96,6 +97,7 @@ func (c *Client) Call(cfg BaseTxCfg, msgs ...MsgCall) (*ctypes.ResultBroadcastTx
return c.signAndBroadcastTxCommit(tx, cfg.AccountNumber, cfg.SequenceNumber)
}

// Run executes a one or more MsgRun calls on the blockchain.
func (c *Client) Run(cfg BaseTxCfg, msgs ...MsgRun) (*ctypes.ResultBroadcastTxCommit, error) {
// Validate required client fields
if err := c.validateSigner(); err != nil {
Expand Down

0 comments on commit e74cac5

Please sign in to comment.