graphql fixes and fix explorer url function

This commit is contained in:
samepant
2022-02-01 21:13:23 -05:00
parent 5fce3f84f9
commit 2f01269b25
5 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ const FindMultisigForm = (props) => {
const handleSearch = () => {
setProcessing(true);
this.props.router.push(`/multi/${this.state.address}`);
props.router.push(`/multi/${address}`);
};
return (
+1
View File
@@ -99,6 +99,7 @@ const MultiSigForm = (props) => {
compressedPubkeys,
parseInt(threshold, 10),
state.chain.addressPrefix,
state.chain.chainId,
);
props.router.push(`/multi/${multisigAddress}`);
} catch (error) {
-2
View File
@@ -130,8 +130,6 @@ const checkAddress = (input, chainAddressPrefix) => {
const explorerLinkTx = (link, hash) => {
if (link && link.includes("${txHash}")) {
return link.replace("${txHash}", hash);
} else if (link && !link.includes("${txHash}")) {
return link + hash;
}
return null;
};
+1 -1
View File
@@ -24,7 +24,7 @@ const createMultisig = async (multisig) => {
createMultisig(data: {
address: "${multisig.address}"
pubkeyJSON: ${JSON.stringify(multisig.pubkeyJSON)}
chainId: "${multisig.chainId}
chainId: "${multisig.chainId}"
}) {
_id
address
+1
View File
@@ -32,6 +32,7 @@ const createMultisigFromCompressedSecp256k1Pubkeys = async (
pubkeyJSON: JSON.stringify(multisigPubkey),
chainId,
};
const res = await axios.post(`/api/chain/${chainId}/multisig`, multisig);
console.log(res.data);
return res.data.address;