Skip to content

Commit

Permalink
solana: fix wormhole-anchor-sdk == 0.1.0-alpha.1
Browse files Browse the repository at this point in the history
  • Loading branch information
a5-pickle committed Aug 4, 2023
1 parent 25c8c43 commit 531c585
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 3 additions & 2 deletions cross-chain/solana/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 cross-chain/solana/programs/wormhole-gateway/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ cpi = ["no-entrypoint"]
anchor-lang = { version = "0.28.0", features = ["init-if-needed"]}
anchor-spl = "0.28.0"

wormhole-anchor-sdk = { git = "https://github.com/wormhole-foundation/wormhole-scaffolding", rev = "81e6801bd9224958614504ff18914c220e9fdaf2", features = ["token-bridge"], default-features = false }
wormhole-anchor-sdk = { version = "0.1.0-alpha.1", features = ["token-bridge"], default-features = false }

tbtc = { path = "../tbtc", features = ["cpi"] }
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::state::Custodian;
use anchor_lang::{prelude::*, solana_program};
use anchor_lang::prelude::*;
use anchor_spl::token;
use wormhole_anchor_sdk::{
token_bridge::{self, program::TokenBridge},
Expand Down Expand Up @@ -162,16 +162,12 @@ pub fn send_tbtc_wrapped(ctx: Context<SendTbtcWrapped>, args: SendTbtcWrappedArg
wormhole_program: ctx.accounts.core_bridge_program.to_account_info(),
},
&[
&[
token_bridge::SEED_PREFIX_SENDER,
&[ctx.accounts.custodian.token_bridge_sender_bump],
],
&[Custodian::SEED_PREFIX, &[custodian.bump]],
&[
b"msg",
&ctx.accounts.core_emitter_sequence.value().to_le_bytes(),
&[ctx.bumps["core_message"]],
],
&[Custodian::SEED_PREFIX, &[custodian.bump]],
],
),
nonce,
Expand Down

0 comments on commit 531c585

Please sign in to comment.