Closed samsiegart closed 2 months ago
@samsiegart could you help me and other reviewers understand what tests have you done on this PR?
@samsiegart could you help me and other reviewers understand what tests have you done on this PR?
Sure yea, just updated the PR description. Lmk if you'd like more clarification or want to walk through it together. We're pretty close to being able to set up an example dapp in this repo with e2e testing, which would make this type of thing easier to test.
refs https://github.com/Agoric/ui-kit/issues/78
This queries the smart wallet auto-provision fee in the wallet connection component, and exposes it in the react
useAgoric
hook as well.Also fixed a bug where the purse notifier was updating every time the bank was polled, even if the balances didn't change. (cc @0xpatrickdev)
Testing
Tested on this branch of dapp-offer-up: https://github.com/Agoric/dapp-offer-up/compare/test-network-dropdown
Steps:
yarn && yarn workspaces run prepack
cd packages/react-components && yarn link
dapp-offer-up
and checkout this branch: https://github.com/Agoric/dapp-offer-up/compare/test-network-dropdowncd ui && yarn link @agoric/react-components
cd ui && yarn && yarn dev
const { smartWalletProvisionFee } = useAgoric()
For an e2e example with the provision dialog, see https://github.com/Agoric/ui-kit/pull/99