Skip to content

Commit 3907431

Browse files
authored
hide bypass on verified websites (#48)
1 parent a54d9d1 commit 3907431

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/simulation/storage.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ export const fetchSimulationAndUpdate = async (args: TransactionArgs) => {
234234
response = result[1];
235235
}
236236

237+
// Just in case the bypass check triggers, skip the simulation on verified websites
238+
if (response.simulation?.scanResult.verified && args.bypassed) {
239+
return skipSimulation(args.id);
240+
}
241+
237242
if (response.type === ResponseType.Error) {
238243
if (response?.error?.message === 'invalid chain id') {
239244
// This will likely be a no-op but we want to handle it anyway.

0 commit comments

Comments
 (0)