Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 21cfa98

Browse files
committed
token-client: Convert ProgramRpcClientSendTransaction to a named struct and add confirm field
1 parent 7e6c031 commit 21cfa98

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

token/client/src/client.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ pub trait SimulateTransactionRpc: SimulateTransaction {
120120
}
121121

122122
#[derive(Debug, Clone, Copy, Default)]
123-
pub struct ProgramRpcClientSendTransaction;
123+
pub struct ProgramRpcClientSendTransaction {
124+
/// Confirm the transaction after sending it
125+
confirm: bool,
126+
}
124127

125128
#[derive(Debug, Clone, PartialEq, Eq)]
126129
pub enum RpcClientResponse {

0 commit comments

Comments
 (0)