implement send command changes
@@ -58,7 +58,7 @@ func send(
args []string,
readerWriter flowkit.ReaderWriter,
globalFlags command.GlobalFlags,
- services *services.Services,
+ srv *services.Services,
state *flowkit.State,
) (command.Result, error) {
codeFilename := args[0]
@@ -92,12 +92,16 @@ func send(
return nil, fmt.Errorf("error parsing transaction arguments: %w", err)
}
- tx, result, err := services.Transactions.Send(
- signer,
- code,
- codeFilename,
+ tx, result, err := srv.Transactions.Send(
+ &services.TransactionAccounts{
+ Payer: signer,
+ },
+ &services.Script{
+ Code: code,
+ Args: transactionArgs,
+ Filename: codeFilename,
+ },
sendFlags.GasLimit,
- transactionArgs,
globalFlags.Network,
)
