From a3971f2b53951fff47af94694fc2e390e60e45de Mon Sep 17 00:00:00 2001 From: MeMeCosmos Date: Wed, 20 Apr 2022 07:01:43 +0000 Subject: [PATCH] add meme chain --- www/js/bundle.js | 2 ++ www/js/pin.js | 5 +++-- www/js/tx-handler-bundle.js | 2 ++ www/js/tx-handler.js | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/www/js/bundle.js b/www/js/bundle.js index 4e511a6..97cdac0 100644 --- a/www/js/bundle.js +++ b/www/js/bundle.js @@ -34500,6 +34500,8 @@ Cosmos.prototype.getAccounts = function(address) { accountsApi = "/cosmos/auth/v1beta1/accounts/"; } else if (this.chainId.indexOf("mantle") != -1) { accountsApi = "/cosmos/auth/v1beta1/accounts/"; + } else if (this.chainId.indexOf("meme") != -1) { + accountsApi = "/cosmos/auth/v1beta1/accounts/"; } else { accountsApi = "/auth/accounts/"; } diff --git a/www/js/pin.js b/www/js/pin.js index cba4e2a..f88b4c4 100755 --- a/www/js/pin.js +++ b/www/js/pin.js @@ -248,7 +248,8 @@ (stdSignMsg.json.chain_id).indexOf("sentinelhub") != -1 || (stdSignMsg.json.chain_id).indexOf("crescent") != -1 || (stdSignMsg.json.chain_id).indexOf("mantle") != -1 || - (stdSignMsg.json.chain_id).indexOf("stargaze") != -1) { + (stdSignMsg.json.chain_id).indexOf("stargaze") != -1) || + (stdSignMsg.json.chain_id).indexOf("meme") != -1) { // TODO: Protobuf sign signTxByProto(decryptedMnemonics, hdPathResult, stdSignMsg.json.chain_id, stdSignMsg); } else { @@ -343,4 +344,4 @@ }, 1000); }); }); -}()); \ No newline at end of file +}()); diff --git a/www/js/tx-handler-bundle.js b/www/js/tx-handler-bundle.js index cb7f2bd..3d4c5be 100644 --- a/www/js/tx-handler-bundle.js +++ b/www/js/tx-handler-bundle.js @@ -192158,6 +192158,8 @@ signTxByProto = async function (mnemonic, hdPath, chainId, stdSignMsg) { prefix = "cre"; } else if (chainId.indexOf("mantle") != -1) { prefix = "mantle"; + } else if (chainId.indexOf("meme") != -1) { + prefix = "meme"; } const signer = new PostIbcSigner(mnemonic, chainId, prefix, hdPath) diff --git a/www/js/tx-handler.js b/www/js/tx-handler.js index 6a76f81..ca7c0b5 100644 --- a/www/js/tx-handler.js +++ b/www/js/tx-handler.js @@ -108,6 +108,8 @@ signTxByProto = async function (mnemonic, hdPath, chainId, stdSignMsg) { prefix = "cre"; } else if (chainId.indexOf("mantle") != -1) { prefix = "mantle"; + } else if (chainId.indexOf("meme") != -1) { + prefix = "meme"; } const signer = new PostIbcSigner(mnemonic, chainId, prefix, hdPath)