Skip to content

Commit

Permalink
fix merge errors #492
Browse files Browse the repository at this point in the history
  • Loading branch information
otselnik committed Feb 8, 2022
1 parent f648e8f commit 185efe7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions proxy/common_neon/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def __setstate__(self, src):
self.__dict__ = src

def _set_defaults(self):
self.tx = None
self.addr = None
self.sign = None
self.nonce = None
Expand All @@ -174,6 +175,8 @@ def _set_defaults(self):
self.error = None

def init_from_eth_tx(self, tx: EthTx):
self.tx = tx

self.v = hex(tx.v)
self.r = hex(tx.r)
self.s = hex(tx.s)
Expand Down
18 changes: 9 additions & 9 deletions proxy/indexer/canceller.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@

import traceback

from logged_groups import logged_group
from solana.publickey import PublicKey
from solana.rpc.api import Client
from solana.system_program import SYS_PROGRAM_ID
from solana.sysvar import SYSVAR_CLOCK_PUBKEY, SYSVAR_RENT_PUBKEY
from solana.transaction import AccountMeta
from spl.token.constants import TOKEN_PROGRAM_ID
from spl.token.instructions import get_associated_token_address
from proxy.common_neon.constants import SYSVAR_INSTRUCTION_PUBKEY

from proxy.common_neon.constants import INCINERATOR_PUBKEY, KECCAK_PROGRAM, SYSVAR_INSTRUCTION_PUBKEY
from proxy.common_neon.neon_instruction import NeonInstruction
from proxy.common_neon.solana_interactor import SolanaInteractor
from proxy.environment import ETH_TOKEN_MINT_ID, SOLANA_URL, get_solana_accounts
from ..environment import SOLANA_URL, EVM_LOADER_ID, ETH_TOKEN_MINT_ID, get_solana_accounts
from ..common_neon.constants import SYSVAR_INSTRUCTION_PUBKEY, INCINERATOR_PUBKEY, KECCAK_PROGRAM
from ..common_neon.utils import get_from_dict
from solana.sysvar import SYSVAR_CLOCK_PUBKEY, SYSVAR_RENT_PUBKEY
from solana.system_program import SYS_PROGRAM_ID
from spl.token.constants import TOKEN_PROGRAM_ID
from logged_groups import logged_group
from proxy.common_neon.utils import get_from_dict
from proxy.environment import ETH_TOKEN_MINT_ID, EVM_LOADER_ID, SOLANA_URL, get_solana_accounts


@logged_group("neon.Indexer")
Expand Down

0 comments on commit 185efe7

Please sign in to comment.