Skip to content

Commit

Permalink
network: Fix worker utils create instruction (#26)
Browse files Browse the repository at this point in the history
* cli: Fix worker creation

* network: Fix worker utils create
  • Loading branch information
Aursen authored Apr 25, 2024
1 parent a9619ae commit 7648057
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cli/src/processor/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ pub fn create(client: &Client, signatory: Keypair, silent: bool) -> Result<(), C
associated_token_program: associated_token::ID,
authority: client.payer_pubkey(),
config: Config::pubkey(),
// fee: Fee::pubkey(worker_pubkey),
signatory: signatory.pubkey(),
mint: config.mint,
registry: Registry::pubkey(),
Expand Down
2 changes: 1 addition & 1 deletion programs/network/src/instructions/worker_utils_create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub struct WorkerUtilsCreate<'info> {
#[account(
seeds = [
SEED_WORKER,
registry.total_workers.to_be_bytes().as_ref(),
(registry.total_workers - 1).to_be_bytes().as_ref(),
],
bump = worker.bump,
)]
Expand Down

0 comments on commit 7648057

Please sign in to comment.