-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
I’m trying to create an IBC channel for a CosmWasm contract on ShareLedger testnet (ShareRing-KUD, Cosmos SDK v0.46.7) with port wasm.<contract_address>.
The channel creation fails with capability not found [cosmos/[email protected]/x/capability/keeper/keeper.go:440]. The contract implements ibc_channel_open and ibc_channel_connect with PORT_BOUND to track capability claiming, but the error persists. Are there ShareLedger-specific requirements for claiming IBC port capabilities for wasm ports?”
`
#[entry_point]
pub fn instantiate(
deps: DepsMut,
env: Env,
info: MessageInfo,
msg: InstantiateMsg,
) -> StdResult {
set_contract_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?;
let state = State {
admin: msg.admin,
target_number: 0,
guess_count: 0,
current_pool: Uint128::zero(),
next_pool: Uint128::zero(),
governance_pool: Uint128::zero(),
round_active: false,
round_id: 1,
max_guesses: msg.max_guesses,
};
STATE.save(deps.storage, &state)?;
IBC_CHANNEL.save(deps.storage, &msg.band_channel)?;
PORT_BOUND.save(deps.storage, &false)?;
let port_id = format!("wasm.{}", env.contract.address);
Ok(Response::new()
.add_attribute("action", "instantiate")
.add_attribute("port_id", port_id))
}
`
Metadata
Metadata
Assignees
Labels
No labels