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

Commit 5ce4e9f

Browse files
author
Joe C
authored
transfer-hook-cli: patch token arg (#6643)
1 parent 5b4fce7 commit 5ce4e9f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

token/transfer-hook/cli/src/main.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,7 @@ extraMetas:
455455
)
456456
.unwrap();
457457

458-
let token_source = arg_matches
459-
.try_get_one::<SignerSource>("program_id")?
460-
.unwrap();
458+
let token_source = arg_matches.try_get_one::<SignerSource>("token")?.unwrap();
461459
let token = pubkey_from_source(arg_matches, token_source, "token", &mut wallet_manager)
462460
.unwrap();
463461

@@ -506,9 +504,7 @@ extraMetas:
506504
)
507505
.unwrap();
508506

509-
let token_source = arg_matches
510-
.try_get_one::<SignerSource>("program_id")?
511-
.unwrap();
507+
let token_source = arg_matches.try_get_one::<SignerSource>("token")?.unwrap();
512508
let token = pubkey_from_source(arg_matches, token_source, "token", &mut wallet_manager)
513509
.unwrap();
514510

0 commit comments

Comments
 (0)