Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
#420 Remove neon token accounts from transaction (#371)
  • Loading branch information
anton-lisanin authored Dec 14, 2021
commit 953081687b7e71ff5f655fdba0d99a863f84cc4e
2 changes: 0 additions & 2 deletions proxy/common_neon/neon_instruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@

obligatory_accounts = [
AccountMeta(pubkey=EVM_LOADER_ID, is_signer=False, is_writable=False),
AccountMeta(pubkey=ETH_TOKEN_MINT_ID, is_signer=False, is_writable=False),
AccountMeta(pubkey=TOKEN_PROGRAM_ID, is_signer=False, is_writable=False),
AccountMeta(pubkey=SYSVAR_CLOCK_PUBKEY, is_signer=False, is_writable=False),
]


Expand Down
4 changes: 0 additions & 4 deletions proxy/common_neon/transaction_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,6 @@ def create_account_list_by_emulate(self):
sender_sol = PublicKey(acc_desc["account"])
else:
add_keys_05.append(AccountMeta(pubkey=acc_desc["account"], is_signer=False, is_writable=True))
token_account = getTokenAddr(PublicKey(acc_desc["account"]))
add_keys_05.append(AccountMeta(pubkey=token_account, is_signer=False, is_writable=True))
if acc_desc["new"]:
if code_account:
add_keys_05.append(AccountMeta(pubkey=code_account, is_signer=False, is_writable=code_account_writable))
Expand All @@ -298,10 +296,8 @@ def create_account_list_by_emulate(self):

self.eth_accounts = [
AccountMeta(pubkey=contract_sol, is_signer=False, is_writable=True),
AccountMeta(pubkey=getTokenAddr(contract_sol), is_signer=False, is_writable=True),
] + ([AccountMeta(pubkey=code_sol, is_signer=False, is_writable=code_writable)] if code_sol != None else []) + [
AccountMeta(pubkey=sender_sol, is_signer=False, is_writable=True),
AccountMeta(pubkey=self.caller_token, is_signer=False, is_writable=True),
] + add_keys_05

self.steps_emulated = output_json["steps_executed"]
Expand Down