Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion conformance/src/bank_methods.zig
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ fn applyBuiltinProgramFeatureTransitions(
if (!feature_set.active(feature_id, 0)) continue;

const maybe_account = accounts_db.getAccountLatest(
allocator,
&precompile.program_id,
) catch |err| switch (err) {
error.PubkeyNotInIndex => null,
Expand Down Expand Up @@ -247,7 +248,7 @@ fn tryGetAccount(
accounts_db: *AccountsDb,
pubkey: Pubkey,
) !?Account {
return accounts_db.getAccountLatest(&pubkey) catch |err| switch (err) {
return accounts_db.getAccountLatest(accounts_db.allocator, &pubkey) catch |err| switch (err) {
error.PubkeyNotInIndex => null,
else => error.AccountsDbInternal,
};
Expand Down
2 changes: 2 additions & 0 deletions conformance/src/txn_execute.zig
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ fn executeTxnContext(
// For fuzzing purposes, accounts db is currently empty so we do not need to check if
// the builtin program is migrated or not.
const builtin_is_bpf_program = if (try accounts_db.getAccountWithAncestors(
allocator,
&builtin_program.program_id,
&ancestors,
)) |account| blk: {
Expand Down Expand Up @@ -699,6 +700,7 @@ fn executeTxnContext(
// Get lamports per signature from first entry in recent blockhashes
const lamports_per_signature = blk: {
const account = try accounts_db.getAccountWithAncestors(
allocator,
&RecentBlockhashes.ID,
&ancestors,
) orelse break :blk null;
Expand Down
Loading