Closed samsiegart closed 2 months ago
fixes https://github.com/Agoric/ui-kit/issues/96
Removes the defaultNetworkConfig prop from AgoricProvider in favor of:
defaultNetworkConfig
AgoricProvider
agoricNetworkConfigs
defaultChainName
Now, instead of passing in networkConfigs to the network dropdown component, it just reads from agoricNetworkConfigs.
networkConfigs
Built successfully and linked locally with dapp-offer-up, tested the new API and switching between multiple networks.
5079d09
View logs
fixes https://github.com/Agoric/ui-kit/issues/96
Overview
Removes the
defaultNetworkConfig
prop fromAgoricProvider
in favor of:agoricNetworkConfigs
for specifying the available networks.defaultChainName
for selecting the default network.Now, instead of passing in
networkConfigs
to the network dropdown component, it just reads fromagoricNetworkConfigs
.Testing
Built successfully and linked locally with dapp-offer-up, tested the new API and switching between multiple networks.