Skip to content

Commit

Permalink
better error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-suri committed Apr 24, 2023
1 parent e61f496 commit 5836f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmwasm/contracts/wormhole-ibc/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ fn handle_vaa(deps: DepsMut, env: Env, vaa: Binary) -> anyhow::Result<Event> {
.context("failed to load contract config")?;
ensure!(
govpacket.chain == Chain::from(state.chain_id),
"this governance VAA is for another chain"
format!("this governance VAA is for chain {}, which does not match this chain ({})", u16::from(govpacket.chain), state.chain_id)
);

// governance VAA replay protection
Expand Down

0 comments on commit 5836f66

Please sign in to comment.