Skip to content

Commit 62a76e7

Browse files
committed
comment again
1 parent 9641a56 commit 62a76e7

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

libs/remix-ui/run-tab/src/lib/actions/account.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export const createNewBlockchainAccount = async (plugin: RunTab, dispatch: React
111111
export const createSmartAccount = async (plugin: RunTab, dispatch: React.Dispatch<any>) => {
112112
const localStorageKey = 'smartAccounts'
113113
const PUBLIC_NODE_URL = "https://go.getblock.io/ee42d0a88f314707be11dd799b122cb9"
114-
const toAddress = "0xAFdAC33F6F134D46bAbE74d9125F3bf8e8AB3a44" // can be zero address too
114+
const toAddress = "0xAFdAC33F6F134D46bAbE74d9125F3bf8e8AB3a44" // A dummy zero value tx is made to this address to create existence of smart account
115115
const safeAddresses: string[] = Object.keys(plugin.REACT_API.smartAccounts)
116116
const network = 'sepolia'
117117
const chain = chains[network]

libs/remix-ui/run-tab/src/lib/components/account.tsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,23 @@ export function AccountUI(props: AccountProps) {
3131
}, [accounts, selectedAccount])
3232

3333
// Uncomment this when we want to show 'Create Smart Account' button
34-
useEffect(() => {
35-
if (networkName.includes('Sepolia')) {
36-
if (smartAccounts.length > 0 && smartAccounts.includes(selectedAccount)) {
37-
setSmartAccountSelected(true)
38-
setEnableCSM(false)
39-
ownerEOA.current = props.runTabPlugin.REACT_API.smartAccounts[selectedAccount].ownerEOA
40-
}
41-
else {
42-
setSmartAccountSelected(false)
43-
setEnableCSM(true)
44-
ownerEOA.current = null
45-
}
46-
} else {
47-
setEnableCSM(false)
48-
setSmartAccountSelected(false)
49-
}
50-
}, [selectedAccount])
34+
// useEffect(() => {
35+
// if (networkName.includes('Sepolia')) {
36+
// if (smartAccounts.length > 0 && smartAccounts.includes(selectedAccount)) {
37+
// setSmartAccountSelected(true)
38+
// setEnableCSM(false)
39+
// ownerEOA.current = props.runTabPlugin.REACT_API.smartAccounts[selectedAccount].ownerEOA
40+
// }
41+
// else {
42+
// setSmartAccountSelected(false)
43+
// setEnableCSM(true)
44+
// ownerEOA.current = null
45+
// }
46+
// } else {
47+
// setEnableCSM(false)
48+
// setSmartAccountSelected(false)
49+
// }
50+
// }, [selectedAccount])
5151

5252
useEffect(() => {
5353
props.setAccount('')

0 commit comments

Comments
 (0)