Skip to content
Merged
Changes from all commits
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
fix storage account check
  • Loading branch information
sinev-valentine committed Nov 24, 2021
commit 2d42b735df4ff717069212be160995fabef88b4e
5 changes: 3 additions & 2 deletions proxy/plugin/solana_rest_api_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
COLLATERALL_POOL_MAX=10

EMPTY_STORAGE_TAG=0
FINALIZED_STORAGE_TAG=5

sysvarclock = "SysvarC1ock11111111111111111111111111111111"
sysinstruct = "Sysvar1nstructions1111111111111111111111111"
Expand Down Expand Up @@ -334,8 +335,8 @@ def create_multiple_accounts_with_seed(client, funding, base, seeds, sizes):
raise Exception("insufficient balance")
if PublicKey(owner) != PublicKey(evm_loader_id):
raise Exception("wrong owner")
if tag != EMPTY_STORAGE_TAG:
raise Exception("not empty")
if tag not in {EMPTY_STORAGE_TAG, FINALIZED_STORAGE_TAG}:
raise Exception("not empty, not finalized")

if len(trx.instructions) > 0:
send_transaction(client, trx, funding)
Expand Down