Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Remote Account Deposit Error, failing to deposit: Type URL '/ibc.applications.transfer.v1.MsgTransfer' does not exist in the Amino message type register. #93

Open
Jovonni opened this issue Nov 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Jovonni
Copy link
Contributor

Jovonni commented Nov 20, 2024

I am not sure yet what previous UI changes caused this, but the frontend deposit logic for an ICA (RemoteAccount) does not succeed anymore as it has before in demos.

failed to deposit: Error: Type URL '/ibc.applications.transfer.v1.MsgTransfer' does not exist in the Amino message type register. If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.

Local account deposit works, but Remote Account does not.

The issue lies here, inside of the Orchestration component:

if (chain === 'agoric') {
const amountToSend = [
{ denom: selectedDenom, amount: amount.toString() },
];
const fee = {
amount: [{ denom: 'ubld', amount: '5000' }],
gas: '200000',
};
const result = await signingClient.sendTokens(
address,
modalAddress,
amountToSend,
fee,
);
if (result.code !== undefined && result.code !== 0) {
throw new Error(`failed to send message: ${result}`);
}
console.log('message sent successfully');
} else {
const sourceChannel = await getIbcChannel(agoricChainName, chain);
const sendMsg = {
typeUrl: '/ibc.applications.transfer.v1.MsgTransfer',
value: {
sourcePort: 'transfer',
sourceChannel,
token: { denom: selectedDenom, amount: amount.toString() },
sender: address,
receiver: modalAddress,
timeoutTimestamp: (Math.floor(Date.now() / 1000) + 600) * 1e9, //10
},
};
const fee = {
amount: [{ denom: 'ubld', amount: '5000' }],
gas: '200000',
};
const result = await walletConnection.signingClient.signAndBroadcast(
address,
[sendMsg],
fee,
'',
);
console.log(result);
if (result.code !== undefined && result.code !== 0) {
throw new Error(`Failed to send IBC transfer: ${result}`);
}
console.log('IBC transfer sent successfully');
}

@Jovonni Jovonni added the bug Something isn't working label Nov 20, 2024
@amessbee
Copy link
Contributor

amessbee commented Dec 6, 2024

@Jovonni while testing after a few contract changes, I observed a weird UI behavior which is probably related to this issue: UI was doing an auto deposit after account creation. Here is how to reproduce it.

  1. Select Agoric in chain selector and press Create button to create an account.
  2. Press the deposit button below the address of the new created account and confirm an amount of 10 IST.
  3. Once the amount is deposited, Create a new account using step 1.
  4. After the creation of new account, the UI will automatically start the last deposit that we did in step 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants