- Please note that this snap is only available in MetaMask Flask,
+ Please note that this SmartHub snap is only available in MetaMask Flask,
and is actively being developed by{' '}
- Transeptor Labs
+ Transeptor Labs.
+
+ {' '}Learn more about ERC4337 at {' '}
+
+ https://www.erc4337.io/
+
);
};
diff --git a/packages/site/src/types/app.ts b/packages/site/src/types/app.ts
index 920d1f2..3742da4 100644
--- a/packages/site/src/types/app.ts
+++ b/packages/site/src/types/app.ts
@@ -15,6 +15,7 @@ export const SupportedChainIdMap: {
} = {
'0x539': { name: 'Private', icon: PrivateLogo, id: '0x539' },
'0x5': { name: 'Goerli', icon: PrivateLogo, id: '0x5' },
+ '0xaa36a7': { name: 'Sepolia', icon: PrivateLogo, id: '0xaa36a7' },
// '0x1': { name: 'Ethereum', icon: EthereumLogo, id: '0x1' },
// '0x89': { name: 'Polygon', icon: PolygonLogo, id: '0x89' },
// '0x13881': { name: 'Polygon Mumbai', icon: PolygonLogo, id: '0x13881' },
diff --git a/packages/site/src/types/erc-4337.ts b/packages/site/src/types/erc-4337.ts
index deeeb1f..7d4179f 100644
--- a/packages/site/src/types/erc-4337.ts
+++ b/packages/site/src/types/erc-4337.ts
@@ -16,7 +16,10 @@ export enum ReputationStatus {
export type SmartContractAccount = {
initCode: string;
address: string;
- ownerAddress: string;
+ owner: {
+ address: string;
+ balance: string;
+ };
balance: string;
nonce: BigNumber;
index: BigNumber;
diff --git a/packages/site/src/utils/snap.ts b/packages/site/src/utils/snap.ts
index 5030d66..7cf0a72 100644
--- a/packages/site/src/utils/snap.ts
+++ b/packages/site/src/utils/snap.ts
@@ -124,9 +124,14 @@ export const getScAccount = async (
deposit: BigNumber.from(parsedResult.deposit).toString(),
connected: true,
ownerAddress: parsedResult.ownerAddress,
+ owner: {
+ address: parsedResult.owner.address,
+ balance: BigNumber.from(parsedResult.owner.balance).toString(),
+ },
} as SmartContractAccount;
};
+// TODO: remove this method
export const getSignedTxs = async (): Promise