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

Commit dbb5ec1

Browse files
authored
spl-token-cli: support compute price + limit with native tokens (#7101)
1 parent 8d115f1 commit dbb5ec1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

token/cli/src/command.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,14 @@ fn native_token_client_from_config(
195195
config.fee_payer()?.clone(),
196196
);
197197

198+
let token = token.with_compute_unit_limit(config.compute_unit_limit.clone());
199+
200+
let token = if let Some(compute_unit_price) = config.compute_unit_price {
201+
token.with_compute_unit_price(compute_unit_price)
202+
} else {
203+
token
204+
};
205+
198206
if let (Some(nonce_account), Some(nonce_authority), Some(nonce_blockhash)) = (
199207
config.nonce_account,
200208
&config.nonce_authority,

0 commit comments

Comments
 (0)