diff --git a/extension/src/providers/ForkProvider.ts b/extension/src/providers/ForkProvider.ts index edbe3eef..5d67021e 100644 --- a/extension/src/providers/ForkProvider.ts +++ b/extension/src/providers/ForkProvider.ts @@ -176,12 +176,13 @@ class ForkProvider extends EventEmitter { const checkpointId: string = await this.provider.request({ method: 'evm_snapshot', }) - this.handlers.onBeforeTransactionSend(checkpointId, metaTx) - console.log({ - mod: this.moduleAddress, - ava: this.avatarAddress, - own: this.ownerAddress, + await this.provider.request({ + method: 'evm_setNextBlockTimestamp', + params: [Math.ceil(Date.now() / 1000).toString()], }) + + this.handlers.onBeforeTransactionSend(checkpointId, metaTx) + // correctly route the meta tx through the avatar let tx: TransactionData & TransactionOptions if (this.moduleAddress) { diff --git a/extension/src/routes/RoutesDrawer/ConnectButton/index.tsx b/extension/src/routes/RoutesDrawer/ConnectButton/index.tsx index d4a8ea49..ad463196 100644 --- a/extension/src/routes/RoutesDrawer/ConnectButton/index.tsx +++ b/extension/src/routes/RoutesDrawer/ConnectButton/index.tsx @@ -19,6 +19,7 @@ import { asLegacyConnection, fromLegacyConnection, } from '../../legacyConnectionMigrations' +import { ZeroAddress } from 'ethers' const walletConnectLogo = ( wallet connect logo @@ -34,8 +35,9 @@ const metamaskLogo = ( const ConnectButton: React.FC<{ id: string }> = ({ id }) => { const [routes, setRoutes] = useRoutes() const { connected, route, chainId } = useRoute(id) - const pilotAddress = + let pilotAddress = route.initiator && parsePrefixedAddress(route.initiator)[1].toLowerCase() + if (pilotAddress === ZeroAddress) pilotAddress = '' const metamask = useMetaMask() const walletConnect = useWalletConnect(route.id)