diff --git a/crates/erc20_payment_lib/src/runtime.rs b/crates/erc20_payment_lib/src/runtime.rs index e5489dba..557c445f 100644 --- a/crates/erc20_payment_lib/src/runtime.rs +++ b/crates/erc20_payment_lib/src/runtime.rs @@ -527,6 +527,10 @@ impl PaymentRuntime { pub fn network_name(&self, chain_id: i64) -> Option<&str> { self.get_chain(chain_id).map(|chain| chain.network.as_str()) } + + pub fn chains(&self) -> Vec { + self.setup.chain_setup.keys().copied().collect() + } } pub async fn remove_last_unsent_transactions(