Skip to content

Commit

Permalink
swap order
Browse files Browse the repository at this point in the history
  • Loading branch information
KillariDev committed Nov 8, 2024
1 parent 96bfa6c commit 992df7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ export const appendTransaction = async (ethereumClientService: EthereumClientSer
return simulationState === undefined ? [signed] : simulationState.simulatedTransactions.map((x) => x.preSimulationTransaction.signedTransaction).concat([signed])
}
const getMakeMeRichAddress = async () => {
if (typeof browser === 'undefined') return simulationState?.addressToMakeRich // if we are not running in browser (tests)
if (simulationState === undefined) return undefined // we are not simulation, don't make anyone rich
if (typeof browser === 'undefined') return simulationState.addressToMakeRich // if we are not running in browser (tests)
return await getAddressToMakeRich()
}

Expand Down

0 comments on commit 992df7e

Please sign in to comment.