Skip to content

Commit

Permalink
Remove remnant TD test to smart contract address
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouzo committed Sep 7, 2023
1 parent 52f01eb commit c866c21
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions test/functional/feature_evm_smart_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,34 +103,6 @@ def test_deploy_smart_contract(self):
"0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063131a06801461003b5780632e64cec114610050575b600080fd5b61004e61004936600461015d565b61006e565b005b6100586100b5565b604051610065919061020e565b60405180910390f35b600061007a82826102e5565b507ffe3101cc3119e1fe29a9c3464a3ff7e98501e65122abab6937026311367dc516816040516100aa919061020e565b60405180910390a150565b6060600080546100c49061025c565b80601f01602080910402602001604051908101604052809291908181526020018280546100f09061025c565b801561013d5780601f106101125761010080835404028352916020019161013d565b820191906000526020600020905b81548152906001019060200180831161012057829003601f168201915b5050505050905090565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561016f57600080fd5b813567ffffffffffffffff8082111561018757600080fd5b818401915084601f83011261019b57600080fd5b8135818111156101ad576101ad610147565b604051601f8201601f19908116603f011681019083821181831017156101d5576101d5610147565b816040528281528760208487010111156101ee57600080fd5b826020860160208301376000928101602001929092525095945050505050565b600060208083528351808285015260005b8181101561023b5785810183015185820160400152820161021f565b506000604082860101526040601f19601f8301168501019250505092915050565b600181811c9082168061027057607f821691505b60208210810361029057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156102e057600081815260208120601f850160051c810160208610156102bd5750805b601f850160051c820191505b818110156102dc578281556001016102c9565b5050505b505050565b815167ffffffffffffffff8111156102ff576102ff610147565b6103138161030d845461025c565b84610296565b602080601f83116001811461034857600084156103305750858301515b600019600386901b1c1916600185901b1785556102dc565b600085815260208120601f198616915b8281101561037757888601518255948401946001909101908401610358565b50858210156103955787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fea2646970667358221220f5c9bb4feb3fa563cfe06a38d411044d98edf92f98726288036607edd71587b564736f6c63430008110033",
)

def test_smart_contract_address_state_balance(self):
initialBlockNumber = self.nodes[0].eth_blockNumber()

balance = self.nodes[0].eth_getBalance(self.smartContractAddress)
assert_equal(balance, int_to_eth_u256(0))

self.nodes[0].transferdomain(
[
{
"src": {"address": self.address, "amount": "50@DFI", "domain": 2},
"dst": {
"address": self.smartContractAddress,
"amount": "50@DFI",
"domain": 3,
},
}
]
)
self.nodes[0].generate(1)

balance = self.nodes[0].eth_getBalance(self.smartContractAddress, "latest")
assert_equal(balance, int_to_eth_u256(50))

balance = self.nodes[0].eth_getBalance(
self.smartContractAddress, initialBlockNumber
) # Test querying previous block
assert_equal(balance, int_to_eth_u256(0))

def test_smart_contract_address_state_storage(self):
initialBlockNumber = self.nodes[0].eth_blockNumber()

Expand Down Expand Up @@ -197,8 +169,6 @@ def run_test(self):

self.test_deploy_smart_contract()

self.test_smart_contract_address_state_balance()

self.test_smart_contract_address_state_storage()


Expand Down

0 comments on commit c866c21

Please sign in to comment.