Timeline for Can someone explain why Anchor's ".signers([ ])" not does work with "sendTransaction" from useWallet()?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 12, 2022 at 14:16 | vote | accept | john | ||
Aug 12, 2022 at 13:06 | answer | added | C.OG | timeline score: 3 | |
Aug 10, 2022 at 13:29 | comment | added | john |
Added the initialize instruction. Using .signers([ ]) works correctly with .rpc . Although didn't get any signatures when I tried to console.log transaction.signatures.map(s => s.publicKey.toBase58()) using .transaction with .signers([newAccount]) . Logged []
|
|
Aug 10, 2022 at 13:19 | history | edited | john | CC BY-SA 4.0 |
added 1042 characters in body
|
Aug 10, 2022 at 9:09 | comment | added | Callum M |
Also could you try logging transaction.signatures.map(s => s.publicKey.toBase58()) in the first case? Also just to sanity check, does the first example work if you do .rpc() at the end instead of .transaction() ?
|
|
Aug 10, 2022 at 7:04 | comment | added | sayantank |
Could you maybe share the Accounts struct as well for the initialize instruction?
|
|
Aug 10, 2022 at 0:04 | history | asked | john | CC BY-SA 4.0 |