Skip to content

IBC Capability Not Found for wasm.<contract_address> on ShareRing-KUD Testnet #6

Description

@ForeManCrypto

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/cosmos-sdk@v0.46.7/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))

}
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions