solana-labs / solana-web3.js

Solana JavaScript SDK
https://solana-labs.github.io/solana-web3.js
MIT License
1.97k stars 791 forks source link

Add `replacementBlockhash` to the simulation return type, in preparation for Agave 2.0 #2870

Closed steveluscher closed 6 days ago

steveluscher commented 1 week ago

Summary

When you ask the simulator to replaceRecentBlockhash, you may like to know what the replacement blockhash was. Agave 2.0 will return it in the simulation result.

It would have been nice to only include this property when replaceRecentBlockhash is explicitly true, but I would have had to duplicate all of the overloads for the purpose, yielding 32 in total.

changeset-bot[bot] commented 1 week ago

⚠️ No Changeset found

Latest commit: c99533cc7aa153fef8117077040b6f04a16f2cb1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

steveluscher commented 1 week ago

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @steveluscher and the rest of your teammates on Graphite Graphite

steveluscher commented 6 days ago

Merge activity

github-actions[bot] commented 5 days ago

:tada: This PR is included in version 1.94.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: