Skip to content

Commit 88037e1

Browse files
#276 Pda account should be is_writable=True because of it is needed to set ro or rw flag in the account (#275)
1 parent cf6b250 commit 88037e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy/plugin/solana_rest_api_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ def create_account_list_by_emulate(signer, client, ethTrx):
905905
elif address == sender_ether:
906906
sender_sol = PublicKey(acc_desc["account"])
907907
else:
908-
add_keys_05.append(AccountMeta(pubkey=acc_desc["account"], is_signer=False, is_writable=(True if acc_desc["contract"] else acc_desc["writable"])))
908+
add_keys_05.append(AccountMeta(pubkey=acc_desc["account"], is_signer=False, is_writable=True))
909909
token_account = get_associated_token_address(PublicKey(acc_desc["account"]), ETH_TOKEN_MINT_ID)
910910
add_keys_05.append(AccountMeta(pubkey=token_account, is_signer=False, is_writable=True))
911911
if acc_desc["new"]:

0 commit comments

Comments
 (0)