I'm confused why the JS Client does not mark the accounts needed for signing as signers, for example when creating a transfer instruction
|
const originalAccounts = { |
|
source: { value: input.source ?? null, isWritable: true }, |
|
destination: { value: input.destination ?? null, isWritable: true }, |
|
}; |
It marks both accounts as WRITEABLE.
In createAccount as well,
|
const originalAccounts = { |
|
payer: { value: input.payer ?? null, isWritable: true }, |
|
newAccount: { value: input.newAccount ?? null, isWritable: true }, |
|
}; |
Why is this?
I'm confused why the JS Client does not mark the accounts needed for signing as signers, for example when creating a transfer instruction
system/clients/js/src/generated/instructions/transferSol.ts
Lines 120 to 123 in 7e5f04e
It marks both accounts as WRITEABLE.
In createAccount as well,
system/clients/js/src/generated/instructions/createAccount.ts
Lines 140 to 143 in 7e5f04e
Why is this?