diff --git a/crates/erc20_payment_lib/src/setup.rs b/crates/erc20_payment_lib/src/setup.rs index 71795b64..47831f9d 100644 --- a/crates/erc20_payment_lib/src/setup.rs +++ b/crates/erc20_payment_lib/src/setup.rs @@ -22,6 +22,7 @@ pub struct ProviderSetup { #[derive(Serialize, Clone, Debug)] #[serde(rename_all = "camelCase")] pub struct ChainSetup { + pub network: String, #[serde(skip_serializing)] pub providers: Vec, pub chain_name: String, @@ -121,6 +122,7 @@ impl PaymentSetup { ps.chain_setup.insert( chain_config.1.chain_id, ChainSetup { + network: chain_config.0.clone(), providers, chain_name: chain_config.1.chain_name.clone(), max_fee_per_gas: gwei_to_u256(chain_config.1.max_fee_per_gas)