diff --git a/snaps/learn/tutorials/gas-estimation.md b/snaps/learn/tutorials/gas-estimation.md index ff09bc47362..424736f7d18 100644 --- a/snaps/learn/tutorials/gas-estimation.md +++ b/snaps/learn/tutorials/gas-estimation.md @@ -150,7 +150,7 @@ Open `packages/snap/src/index.ts`. This is the main code file for your Snap. To get a gas fee estimate, use the public API endpoint provided by [Open Source Ethereum Explorer](https://beaconcha.in/). -If it not already present, add the following `getFees()` function to the beginning of the `/packages/snap/src/index.ts` file: +Add the following `getFees()` function to the beginning of the `/packages/snap/src/index.ts` file: ```typescript title="index.ts" import type { OnRpcRequestHandler } from "@metamask/snaps-sdk"; @@ -235,29 +235,12 @@ To build and test your Snap: You have integrated a public API into MetaMask and displayed real-time gas fee estimates. -## Troubleshoot +### 6. Next steps -If you click the **Send message** button and receive an error message similar to the following, update `packages/site/src/pages/index.tsx`: - -
-
-