Skip to content
Closed
Show file tree
Hide file tree
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
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'yarn'
node-version: '18'
- run: yarn install --frozen-lockfile # optional, --immutable
- run: cd wallet && yarn lint
- run: yarn test
2 changes: 1 addition & 1 deletion wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@agoric/internal": "0.3.2",
"@agoric/nat": "^4.1.0",
"@agoric/notifier": "^0.6.2",
"@agoric/rpc": "^0.6.0",
"@agoric/rpc": "^0.10.0",
"@agoric/smart-wallet": "^0.5.4-dev-6bce049.0",
"@agoric/ui-components": "^0.3.9-dev-2c6fbc5.0",
"@agoric/web-components": "^0.6.4-dev-2c6fbc5.0",
Expand Down
3 changes: 1 addition & 2 deletions wallet/src/components/SmartWalletConnection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export const useProvisionPoolMetrics = (watcher?: ChainStorageWatcher) => {
watcher?.watchLatest(
[Kind.Data, 'published.provisionPool.metrics'],
setData,
e => console.error('error watching provision pool metrics', e),
),
[watcher],
);
Expand Down Expand Up @@ -126,7 +125,7 @@ const SmartWalletConnection = ({
if (!keplrConnection) return undefined;

return makeAgoricChainStorageWatcher(
keplrConnection.rpc,
keplrConnection.api,
keplrConnection.chainId,
backendError,
context.fromBoard,
Expand Down
2 changes: 2 additions & 0 deletions wallet/src/contexts/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export type KeplrUtils = {
backgroundSigner: BackgroundSigner;
};
rpc: string;
api: string;
};

const useDebugLogging = (state, watch) => {
Expand Down Expand Up @@ -238,6 +239,7 @@ const Provider = ({ children }) => {
signers: { interactiveSigner, backgroundSigner },
chainId: chainInfo.chainId,
rpc: chainInfo.rpc,
api: chainInfo.rest,
});
};

Expand Down
17 changes: 0 additions & 17 deletions wallet/src/util/WalletBackendAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,6 @@ export const makeWalletBridgeFromFollowers = (
value => {
beansOwingUpdater.updateState(Number(value));
},
err => {
console.error('error watching beansOwing', err);
// Don't throw on beansOwing, for upgrade backwards compatibility.
// errorHandler(new Error(err));
},
),
);
};
Expand Down Expand Up @@ -323,10 +318,6 @@ export const makeWalletBridgeFromFollowers = (
vbankAssets = value;
possiblyUpdateBankPurses();
},
err => {
console.error('error watching vbank assets', err);
errorHandler(new Error(err));
},
),
);
};
Expand All @@ -343,10 +334,6 @@ export const makeWalletBridgeFromFollowers = (
cancel();
res(new Map((value as AgoricBrandsUpdate).map(([k, v]) => [v, k])));
},
err => {
cancel();
rej(err);
},
);
});

Expand All @@ -362,10 +349,6 @@ export const makeWalletBridgeFromFollowers = (
value.liveOffers ?? [],
);
},
err => {
console.error('error watching pending offers', err);
errorHandler(new Error(err));
},
),
);
};
Expand Down
Loading
Loading