Skip to content

Commit

Permalink
Fix example code syntax (#1283)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Documentation**
- Updated the "Getting Started" guide for better clarity and stability.

- **Bug Fixes**
- Improved method calls related to the `tevm` API for enhanced
stability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
gregfromstl authored Jul 7, 2024
1 parent 80c8472 commit 8b85281
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/src/content/docs/getting-started/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,6 @@ async function runApp() {
to: address,
value: 420n,
throwOnFail: false,
// on-success will only create a transaction if the initial run of it doesn't revert
createTransaction: "on-success",
});
// aggregate error is a good way to throw an array of errors
if (callResult.errors) throw callResult.errors;
Expand Down Expand Up @@ -486,8 +484,8 @@ If we remove the createTransaction: true the txHash will not be there. However,

```typescript
// the tevm means this api is not guaranteed to remain stable
const mempool = await memoryClient.tevm.txPool();
console.log(await mempool.getBySenderAddress(EthjsAddress.fromString(address)));
const mempool = await memoryClient.tevm.getTxPool();
console.log(await mempool.getBySenderAddress(EthjsAddress.fromString(prefundedAccounts[0])));
```

:::tip[Using the low level api]
Expand Down

0 comments on commit 8b85281

Please sign in to comment.