What's Changed
#54 fix(simnet): fetch all accounts before processing instructions
This PR fixes the automatic fetching of accounts before an instruction is executed. Before, only the program ID was fetched. Now, all programs involved in the account are fetched (unless they are available in the local LiteSVM cache).
#53 feat(core): add custom rpc module with svm_setAccount method
This PR adds the first of our SVM Tricks RPC methods: svm_setAccount. This RPC method allows overwriting any of the fields of an account.
The RPC method expects two arguments:
- The pubkey of the account to update
- An object with any account fields:
lamports,data,executable,rent_epoch, andowner.
Any of the fields specified in argument 2. will be applied onto the account associated with argument 1.
Here is an example RPC call:
{
"jsonrpc": "2.0",
"id": "1",
"method": "svm_setAccount",
"params": [
"zbBjhHwuqyKMmz8ber5oUtJJ3ZV4B6ePmANfGyKzVGV",
{
"lamports": 100000000000,
"data": "0x2",
"executable": false,
"rent_epoch": 1,
"owner": "11111111111111111111111111111111"
}
]
}Full Changelog: v0.1.10...v0.1.11
Important
Surfpool is in pre-release—handle with care! It might wipe out or ride smoothly, depending on the swell.
Always stay on the latest version for the best ride.
# macOS (Homebrew)
brew reinstall txtx/taps/surfpool
# Linux (Snapstore)
snap upgrade surfpool