Skip to content

Commit

Permalink
Add docker info
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Jan 21, 2025
1 parent 1fb3ee9 commit cb793af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions solana-programs/docker-info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"web": {
"tuktuk-crank-turner": "./tuktuk-crank-turner"
},
"oracle": {
},
Expand Down
12 changes: 9 additions & 3 deletions solana-programs/programs/tuktuk/src/instructions/run_task_v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,18 @@ impl<'a, 'info> TaskProcessor<'a, 'info> {

for i in &ix.accounts {
let acct = remaining_accounts[*i as usize].clone();
accounts.push(acct.clone());
let mut acct = acct.clone();
let is_signer = acct.is_signer || self.signer_addresses.contains(&acct.key());
if is_signer {
acct.is_signer = true;
}

account_infos.push(AccountMeta {
pubkey: acct.key(),
is_signer: acct.is_signer || self.signer_addresses.contains(&acct.key()),
is_signer,
is_writable: acct.is_writable,
})
});
accounts.push(acct);
}

let signer_seeds: Vec<Vec<&[u8]>> = self
Expand Down

0 comments on commit cb793af

Please sign in to comment.