File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
recording-oracle/tests/integration/chain Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ class PolygonAmoyConfig(_NetworkConfig):
9595 private_key = getenv ("POLYGON_AMOY_PRIVATE_KEY" )
9696 addr = getenv ("POLYGON_AMOY_ADDR" )
9797
98+
9899class AuroraTestnetConfig (_NetworkConfig ):
99100 chain_id = 1313161555
100101 rpc_api = getenv ("AURORA_TESTNET_RPC_API_URL" )
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ class AuroraTestnetConfig:
6060 w3 = get_web3 (ChainId .AURORA_TESTNET .value )
6161 assert isinstance (w3 , Web3 )
6262 assert w3 .eth .default_account == DEFAULT_GAS_PAYER
63- assert w3 .manager ._provider .endpoint_uri == AuroraTestnetConfig .rpc_api
63+ assert w3 .manager ._provider .endpoint_uri == AuroraTestnetConfig .rpc_api
6464
6565 def test_get_web3_localhost (self ):
6666 w3 = get_web3 (ChainId .LOCALHOST .value )
@@ -101,7 +101,9 @@ def test_sign_message_aurora_tesnet(self):
101101 DEFAULT_GAS_PAYER_PRIV ,
102102 ):
103103 mock_function .return_value = self .w3
104- signature , serialized_message = sign_message (ChainId .AURORA_TESTNET .value , "message" )
104+ signature , serialized_message = sign_message (
105+ ChainId .AURORA_TESTNET .value , "message"
106+ )
105107 assert signature == SIGNATURE
106108 assert serialized_message == json .dumps ("message" )
107109
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class PolygonAmoyConfig:
4848 assert isinstance (w3 , Web3 )
4949 assert w3 .eth .default_account == DEFAULT_GAS_PAYER
5050 assert w3 .manager ._provider .endpoint_uri == PolygonAmoyConfig .rpc_api
51-
51+
5252 def test_get_web3_aurora_testnet (self ):
5353 class AuroraTestnetConfig :
5454 chain_id = 1313161555
@@ -59,7 +59,7 @@ class AuroraTestnetConfig:
5959 w3 = get_web3 (ChainId .AURORA_TESTNET .value )
6060 assert isinstance (w3 , Web3 )
6161 assert w3 .eth .default_account == DEFAULT_GAS_PAYER
62- assert w3 .manager ._provider .endpoint_uri == AuroraTestnetConfig .rpc_api
62+ assert w3 .manager ._provider .endpoint_uri == AuroraTestnetConfig .rpc_api
6363
6464 def test_get_web3_localhost (self ):
6565 w3 = get_web3 (ChainId .LOCALHOST .value )
You can’t perform that action at this time.
0 commit comments