Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update compiled test outputs #14

Merged
merged 1 commit into from
Jan 29, 2024
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
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/compiled-examples/calculator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ mod calculator {

let calculator = Empty {
account: dot::program::Calculator::load(&mut ctx.accounts.calculator, &programs_map),
bump: ctx.bumps.get("calculator").map(|bump| *bump),
bump: Some(ctx.bumps.calculator),
};

init_calculator_handler(owner.clone(), calculator.clone());
Expand Down
2 changes: 1 addition & 1 deletion tests/compiled-examples/fizzbuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ mod fizzbuzz {

let fizzbuzz = Empty {
account: dot::program::FizzBuzz::load(&mut ctx.accounts.fizzbuzz, &programs_map),
bump: ctx.bumps.get("fizzbuzz").map(|bump| *bump),
bump: Some(ctx.bumps.fizzbuzz),
};

init_handler(owner.clone(), fizzbuzz.clone());
Expand Down
4 changes: 2 additions & 2 deletions tests/compiled-examples/hello.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,15 +350,15 @@ mod hello {

let hello = Empty {
account: dot::program::Hello::load(&mut ctx.accounts.hello, &programs_map),
bump: ctx.bumps.get("hello").map(|bump| *bump),
bump: Some(ctx.bumps.hello),
};

let mint = Empty {
account: SeahorseAccount {
account: &ctx.accounts.mint,
programs: &programs_map,
},
bump: ctx.bumps.get("mint").map(|bump| *bump),
bump: Some(ctx.bumps.mint),
};

init_handler(owner.clone(), hello.clone(), mint.clone());
Expand Down
2 changes: 1 addition & 1 deletion tests/compiled-examples/stored_mutables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ mod stored_mutables {

let data = Empty {
account: dot::program::Data::load(&mut ctx.accounts.data, &programs_map),
bump: ctx.bumps.get("data").map(|bump| *bump),
bump: Some(ctx.bumps.data),
};

init_handler(signer.clone(), data.clone());
Expand Down
2 changes: 1 addition & 1 deletion tests/compiled-test-cases/account_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ mod account_key {
let user = dot::program::User::load(&mut ctx.accounts.user, &programs_map);
let another = Empty {
account: dot::program::Another::load(&mut ctx.accounts.another, &programs_map),
bump: ctx.bumps.get("another").map(|bump| *bump),
bump: Some(ctx.bumps.another),
};

ix_handler(payer.clone(), user.clone(), another.clone());
Expand Down
Loading