Skip to content

Commit

Permalink
ntt-accountant: crate bump with wire format update
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-gray committed Mar 1, 2024
1 parent aab07de commit 2bb14fd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cosmwasm/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 cosmwasm/contracts/ntt-global-accountant/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cw-storage-plus = "0.13.2"
cw_transcode = "0.1.0"
cw2 = "0.13.2"
hex = { version = "0.4.3", features = ["serde"] }
ntt-messages = { git = "https://github.com/wormhole-foundation/example-native-token-transfers.git", rev = "22bde0c7d8139675582d861dc8245eb1912324fa" }
ntt-messages = { git = "https://github.com/wormhole-foundation/example-native-token-transfers.git", rev = "cd1f8fe13b9aba3bf1a38938d952841c98cb7288" }
schemars = "0.8.8"
serde = { version = "1.0.137", default-features = false, features = ["derive"] }
serde_wormhole = "0.1.0"
Expand Down
3 changes: 1 addition & 2 deletions cosmwasm/contracts/ntt-global-accountant/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,7 @@ fn handle_ntt_vaa(
let message: WormholeTransceiverInfo =
TypePrefixedPayload::read_payload(&mut payload.as_slice())
.context("failed to parse NTT info payload")?;
if message.manager_mode == (Mode::Burning) {
// TODO: this enum is backwards in the crate
if message.manager_mode == (Mode::Locking) {
let chain = body.emitter_chain.into();
let hub_key = TRANSCEIVER_TO_HUB.key((chain, sender));

Expand Down
2 changes: 1 addition & 1 deletion wormchain/contracts/tools/__tests__/test_ntt_accountant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ const mockTransferPayload = (
amount: number,
toChain: number
) => {
const seq = `0`.padStart(16, "0");
const seq = dummy32;
const d = decimals.toString(16).padStart(2, "0");
const a = amount.toString(16).padStart(16, "0");
const payload = `994E5454${d}${a}${dummy32}${dummy32}${chainToHex(toChain)}`;
Expand Down

0 comments on commit 2bb14fd

Please sign in to comment.