graphql fixes and fix explorer url function
This commit is contained in:
parent
5fce3f84f9
commit
2f01269b25
@ -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 (
|
||||
|
||||
@ -99,6 +99,7 @@ const MultiSigForm = (props) => {
|
||||
compressedPubkeys,
|
||||
parseInt(threshold, 10),
|
||||
state.chain.addressPrefix,
|
||||
state.chain.chainId,
|
||||
);
|
||||
props.router.push(`/multi/${multisigAddress}`);
|
||||
} catch (error) {
|
||||
|
||||
@ -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;
|
||||
};
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user