diff --git a/cosmwasm/contracts/wormhole/src/contract.rs b/cosmwasm/contracts/wormhole/src/contract.rs index 99dd40c100..9d107f48be 100644 --- a/cosmwasm/contracts/wormhole/src/contract.rs +++ b/cosmwasm/contracts/wormhole/src/contract.rs @@ -1,5 +1,5 @@ use cosmwasm_std::{ - has_coins, to_binary, BankMsg, Binary, Coin, CosmosMsg, Deps, DepsMut, Env, MessageInfo, + has_coins, to_json_binary, BankMsg, Binary, Coin, CosmosMsg, Deps, DepsMut, Env, MessageInfo, Response, StdError, StdResult, Storage, WasmMsg, }; @@ -272,7 +272,7 @@ fn vaa_update_contract(_deps: DepsMut, env: Env, data: &[u8]) -> StdResult StdResult { match msg { - QueryMsg::GuardianSetInfo {} => to_binary(&query_guardian_set_info(deps)?), - QueryMsg::VerifyVAA { vaa, block_time } => to_binary(&query_parse_and_verify_vaa( + QueryMsg::GuardianSetInfo {} => to_json_binary(&query_guardian_set_info(deps)?), + QueryMsg::VerifyVAA { vaa, block_time } => to_json_binary(&query_parse_and_verify_vaa( deps, vaa.as_slice(), block_time, )?), - QueryMsg::GetState {} => to_binary(&query_state(deps)?), - QueryMsg::QueryAddressHex { address } => to_binary(&query_address_hex(deps, &address)?), + QueryMsg::GetState {} => to_json_binary(&query_state(deps)?), + QueryMsg::QueryAddressHex { address } => { + to_json_binary(&query_address_hex(deps, &address)?) + } } }