@@ -11,7 +11,7 @@ use foundry_common::{REQUEST_TIMEOUT, duration_since_unix_epoch, sh_println};
1111use polkadot_sdk:: {
1212 pallet_revive:: evm:: Account ,
1313 sc_cli:: {
14- self , CliConfiguration as SubstrateCliConfiguration , DEFAULT_WASM_EXECUTION_METHOD ,
14+ self , CliConfiguration as SubstrateCliConfiguration , Cors , DEFAULT_WASM_EXECUTION_METHOD ,
1515 DEFAULT_WASMTIME_INSTANTIATION_STRATEGY , RPC_DEFAULT_MAX_CONNECTIONS ,
1616 RPC_DEFAULT_MAX_REQUEST_SIZE_MB , RPC_DEFAULT_MAX_RESPONSE_SIZE_MB ,
1717 RPC_DEFAULT_MAX_SUBS_PER_CONN , RPC_DEFAULT_MESSAGE_CAPACITY_PER_CONN ,
@@ -97,7 +97,7 @@ impl SubstrateNodeConfig {
9797 rpc_message_buffer_capacity_per_connection : RPC_DEFAULT_MESSAGE_CAPACITY_PER_CONN ,
9898 rpc_disable_batch_requests : false ,
9999 rpc_max_batch_request_len : None ,
100- rpc_cors : Some ( sc_cli :: Cors :: All ) ,
100+ rpc_cors : None ,
101101 } ;
102102
103103 // Anvil node requires these cli params configured by default except the state_pruning and
@@ -194,8 +194,7 @@ impl SubstrateCliConfiguration for SubstrateNodeConfig {
194194 }
195195
196196 fn rpc_cors ( & self , _is_dev : bool ) -> sc_cli:: Result < Option < Vec < String > > > {
197- // CORS is explicitly set to avoid the "Running in --dev mode" warning from polkadot-sdk
198- Ok ( self . rpc_params . rpc_cors . clone ( ) . unwrap_or ( sc_cli:: Cors :: All ) . into ( ) )
197+ Ok ( self . rpc_params . rpc_cors . clone ( ) . unwrap_or ( Cors :: All ) . into ( ) )
199198 }
200199
201200 fn rpc_addr (
0 commit comments