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

fix/PRO-2576/update-new-wallet-factory #159

Merged
merged 7 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [0.15.0] - 2024-08-08

### Breaking Changes
- Updated `@etherspot/modular-sdk` with new wallet factory contract address

## [0.14.1] - 2024-07-11

### Added Changes
Expand Down
30 changes: 15 additions & 15 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const App = () => {
if (expired) return;

setBalancePerAddress(updatedBalances);
await listModules().then((list) => setModulesList(list));
await listModules().then((list) => setModulesList(list)).catch((e) => setModulesList(undefined));
};

refreshBalances();
Expand Down Expand Up @@ -259,22 +259,22 @@ const App = () => {
<Typography>{etherspotPrimeOrModularAddress}</Typography>
</Paper>
)}
<Box sx={{ borderBottom: 1, borderTop: 1, borderColor: 'divider' }} mt={4} py={4}>
{modulesList && (
<div>
<Typography>Modules installed:</Typography>
<ul>
{modulesList.validators?.map((module, i) => (
<li key={i}>
<Typography fontSize={14}>{module}</Typography>
</li>
))}
</ul>
</div>
<Box sx={{ borderBottom: 1, borderTop: 1, borderColor: 'divider' }} mt={4} py={4}>
<div>
<Typography>Modules installed:</Typography>
<ul>
{modulesList.validators?.map((module, i) => (
<li key={i}>
<Typography fontSize={14}>{module}</Typography>
</li>
))}
</ul>
</div>
<button onClick={onInstallModuleClick}>Install a module</button>
<button onClick={onUninstallModuleClick}>Uninstall a module</button>
</Box>
)}
<button onClick={onInstallModuleClick}>Install a module</button>
<button onClick={onUninstallModuleClick}>Uninstall a module</button>
</Box>
</Box>
<Box sx={{ borderBottom: 1, borderColor: 'divider' }}>
<Tabs value={activeTab} onChange={(event, id) => setActiveTab(id)}>
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@etherspot/transaction-kit",
"description": "React Etherspot Transaction Kit",
"version": "0.14.1",
"version": "0.15.0",
"main": "dist/cjs/index.js",
"scripts": {
"rollup:build": "NODE_OPTIONS=--max-old-space-size=8192 rollup -c",
Expand All @@ -22,7 +22,7 @@
"homepage": "https://github.com/etherspot/transaction-kit#readme",
"dependencies": {
"@etherspot/eip1271-verification-util": "0.1.2",
"@etherspot/modular-sdk": "1.1.2",
"@etherspot/modular-sdk": "2.0.0",
"@etherspot/prime-sdk": "1.8.1",
"buffer": "^6.0.3",
"ethers": "^5.6.9",
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useEtherspotModules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const useEtherspotModules = (chainId?: number): IEtherspotModulesHook => {
} catch (e) {
console.error(
`Sorry, an error occurred whilst trying to list all your wallet modules on`
+ ` ${modulesForAccount}. Please try again. Error:`,
+ ` ${modulesForAccount}. Please make sure your account is deployed and try again. Error:`,
e,
);
throw new Error(`Failed to list all modules: ${e}`)
Expand Down
Loading