Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/errors/src/json-rpc-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
programId: string;
} | null;
unitsConsumed: number | null;
loadedAccountsDataSize: number | null;

Check failure on line 93 in packages/errors/src/json-rpc-error.ts

View workflow job for this annotation

GitHub Actions / Build & Test on Node current

Expected interface keys to be in ascending order. 'loadedAccountsDataSize' should be before 'unitsConsumed'
}

export function getSolanaErrorFromJsonRpcError(putativeErrorResponse: unknown): SolanaError {
Expand Down
2 changes: 2 additions & 0 deletions packages/rpc-api/src/simulateTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ type SimulateTransactionApiResponseBase = Readonly<{
}> | null;
/** The number of compute budget units consumed during the processing of this transaction */
unitsConsumed?: bigint;
/** The number of bytes of all accounts loaded by this transaction */
loadedAccountsDataSize?: bigint;
Comment thread
tao-stones marked this conversation as resolved.
Outdated
}>;

type SimulateTransactionApiResponseWithAccounts<T extends AccountInfoBase> = Readonly<{
Expand Down
Loading