add loadedAccountsDataSize to simulate transaction response#521
Conversation
🦋 Changeset detectedLatest commit: a3d0c4e The changes in this PR will be included in the next version bump. This PR includes changesets to release 40 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
BundleMonFiles updated (4)
Unchanged files (123)
Total files change +51B +0.01% Final result: ✅ View report in BundleMon website ➡️ |
steveluscher
left a comment
There was a problem hiding this comment.
Awesome! Just alpha-order those properties, and then add an allowlist entry to tell the system that it's allowed to be a number instead of a bigint.
You'll almost certainly need to update simulate-transaction.test.ts also.
You can get tests running by doing:
pnpm install
cd packages/rpc-api/
pnpm turbo compile:typedefs compile:js
pnpm dev
The last step starts up a persistent server that runs lint & tests whenever you save a file.
| @@ -0,0 +1,5 @@ | |||
| --- | |||
There was a problem hiding this comment.
Since it changes response, thought a changeset is needed?
|
Looks good! I fixed up lint and pushed a change to the keypath. Ironic thing is that your tests won't pass until the validator starts to emit this value, so we'll have to wait to land this PR until then. |
Thank you!
Ah, that explains why my local test keeping error out! I'll change this PR to "ready for review" (a post fact :D) for now. |
* add loadedAccountsDataSize to simulate transaction response * alpha-order new field with type number * update test * add changeset * alpha-order error code * update set-transaction-test for added field * Ran `pnpm style:fix` * Change allowed numeric path to `value.loadedAccountsDataSize` --------- Co-authored-by: Steven Luscher <steven.luscher@anza.xyz> (cherry picked from commit 98bde94)
) * add loadedAccountsDataSize to simulate transaction response * alpha-order new field with type number * update test * add changeset * alpha-order error code * update set-transaction-test for added field * Ran `pnpm style:fix` * Change allowed numeric path to `value.loadedAccountsDataSize` --------- (cherry picked from commit 98bde94) Co-authored-by: Tao Zhu <82401714+tao-stones@users.noreply.github.com> Co-authored-by: Steven Luscher <steven.luscher@anza.xyz>
|
Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up. |
Problem
anza-xyz/agave#6023 adds loaded-accounts-data-size to simulate transaction result.
Summary of Changes
Implements #541.