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 20, 2023
1 parent 31b7e3c commit bd7e4d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmwasm/contracts/wormhole-ibc/src/contract.rs
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 bd7e4d8

Please sign in to comment.