Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add netwrok to ChainSetup #43

Merged
merged 2 commits into from
Aug 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions crates/erc20_payment_lib/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ProviderSetup>,
pub chain_name: String,
Expand Down Expand Up @@ -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)
Expand Down