graphql fixes and fix explorer url function

This commit is contained in:
samepant 2022-01-26 21:01:48 -05:00
parent 5fce3f84f9
commit 2f01269b25
5 changed files with 4 additions and 4 deletions

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 (

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) {

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;
};

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

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;