Skip to content

Commit

Permalink
Improves description
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagodeev authored Dec 18, 2024
1 parent 568d26f commit 0a9b3ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/simpleInvoke/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ func main() {

// Building the Calldata with the help of FmtCalldata where we pass in the FnCall struct along with the Cairo version
//
// note: in Starknet, you can pass multiple function calls in the same transaction, even if they are from different contracts.
// To do this, just group all the function calls in the same slice and pass it to FmtCalldata
// note: in Starknet, you can execute multiple function calls in the same transaction, even if they are from different contracts.
// To do this in Starknet.go, just group all the function calls in the same slice and pass it to FmtCalldata
// e.g. : InvokeTx.Calldata, err = accnt.FmtCalldata([]rpc.FunctionCall{funcCall, anotherFuncCall, yetAnotherFuncCallFromDifferentContract})
InvokeTx.Calldata, err = accnt.FmtCalldata([]rpc.FunctionCall{FnCall})
if err != nil {
Expand Down

0 comments on commit 0a9b3ea

Please sign in to comment.