You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Application type (web/Flutter): Mobile App Android
Bug description
Alan doesn't not connect to certain grpc url when send cosmos transaction example -> grpc.testnet-croeseid-4.cronos-pos.org, testnet.sentry.chain.grpc.injective.network
Steps to reproduce
cosmos.NetworkInfogetNetworkInfo() {
return cosmos.NetworkInfo(
bech32Hrp: bech32Hrp,
lcdInfo: cosmos.LCDInfo(host: lcdUrl),
grpcInfo: cosmos.GRPCInfo(host: grpcUrl),
);
}
final networkInfo =getNetworkInfo();
final uatomToSend =double.parse(amount) *pow(10, decimals());
final feeD =awaitgetTransactionFee(amount, to) *pow(10, decimals());
final keyPair =awaitcompute(calculateCosmosKey, {
mnemonicKey: pref.get(currentMmenomicKey),
'getCosmosKeys':true,
"networkInfo": networkInfo,
'path': path,
});
cosmos.Wallet wallet = keyPair;
final message = bank.MsgSend.create()
..fromAddress = wallet.bech32Address
..toAddress = to;
final coin = cosmos.Coin.create()
..denom = denom
..amount = uatomToSend.toInt().toString();
message.amount.add(coin);
final signer = cosmos.TxSigner.fromNetworkInfo(networkInfo);
final fee = cosmos.Fee();
fee.gasLimit =200000.toInt64();
final feeCoin = cosmos.Coin.create()
..denom = denom
..amount = feeD.toInt().toString();
fee.amount.add(feeCoin);
final tx =await signer.createAndSign(
wallet,
[message],
memo: memo,
fee: fee,
);
final txSender = cosmos.TxSender.fromNetworkInfo(networkInfo);
final response =await txSender.broadcastTx(tx);
if (response.isSuccessful) {
return response.txhash;
}
if (kDebugMode) {
print(response.toString());
}
The text was updated successfully, but these errors were encountered:
Generic information
Bug description
Alan doesn't not connect to certain grpc url when send cosmos transaction example -> grpc.testnet-croeseid-4.cronos-pos.org, testnet.sentry.chain.grpc.injective.network
Steps to reproduce
The text was updated successfully, but these errors were encountered: