From a9beaf2b631d255cc0532312c31041b5cbf4421a Mon Sep 17 00:00:00 2001 From: Callum Date: Mon, 29 Jan 2024 21:44:13 +0000 Subject: [PATCH] update compiled test case outputs --- Cargo.lock | 2 +- tests/compiled-examples/calculator.rs | 2 +- tests/compiled-examples/fizzbuzz.rs | 2 +- tests/compiled-examples/hello.rs | 4 ++-- tests/compiled-examples/stored_mutables.rs | 2 +- tests/compiled-test-cases/account_key.rs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2fe0af8..cfe447c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -830,7 +830,7 @@ dependencies = [ [[package]] name = "seahorse-dev" -version = "0.1.0" +version = "0.1.1" dependencies = [ "base58", "clap", diff --git a/tests/compiled-examples/calculator.rs b/tests/compiled-examples/calculator.rs index 42770b7..f6c9539 100644 --- a/tests/compiled-examples/calculator.rs +++ b/tests/compiled-examples/calculator.rs @@ -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()); diff --git a/tests/compiled-examples/fizzbuzz.rs b/tests/compiled-examples/fizzbuzz.rs index f7bee8e..a0d3a7a 100644 --- a/tests/compiled-examples/fizzbuzz.rs +++ b/tests/compiled-examples/fizzbuzz.rs @@ -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()); diff --git a/tests/compiled-examples/hello.rs b/tests/compiled-examples/hello.rs index 4a6edd5..484bf4a 100644 --- a/tests/compiled-examples/hello.rs +++ b/tests/compiled-examples/hello.rs @@ -350,7 +350,7 @@ 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 { @@ -358,7 +358,7 @@ mod hello { 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()); diff --git a/tests/compiled-examples/stored_mutables.rs b/tests/compiled-examples/stored_mutables.rs index e57b45a..d971f77 100644 --- a/tests/compiled-examples/stored_mutables.rs +++ b/tests/compiled-examples/stored_mutables.rs @@ -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()); diff --git a/tests/compiled-test-cases/account_key.rs b/tests/compiled-test-cases/account_key.rs index 6c58d03..4025740 100644 --- a/tests/compiled-test-cases/account_key.rs +++ b/tests/compiled-test-cases/account_key.rs @@ -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());