diff --git a/.gitignore b/.gitignore index 7002712..1f353f1 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,6 @@ npm-debug.log* yarn-debug.log* yarn-error.log* + +# Local Netlify folder +.netlify \ No newline at end of file diff --git a/components/forms/MultisigForm.js b/components/forms/MultisigForm.js index 14b1ba4..67d5e38 100644 --- a/components/forms/MultisigForm.js +++ b/components/forms/MultisigForm.js @@ -58,12 +58,28 @@ class MultiSigForm extends React.Component { handleCreate = async () => { this.setState({ processing: true }); - const res = await axios.post("/api/multiaddress", { - members: this.state.pubkeys, - threshold: this.state.threshold, + const res = await axios.post("/.netlify/functions/create-multisig", { + threshold: 3, + sourceAddresses: [ + { + nickname: "samtest", + address: "cosmossam1", + pubkey: "sampubkey", + }, + { + nickname: "samtest2", + address: "cosmossam2", + pubkey: "sampubkey", + }, + { + nickname: "samtest3", + address: "cosmossam3", + pubkey: "sampubkey", + }, + ], }); - - this.props.router.push(`/multi/${res.data}`); + console.log(res); + // this.props.router.push(`/multi/${res.data}`); }; render() { @@ -78,7 +94,7 @@ class MultiSigForm extends React.Component {

{this.state.pubkeys.map((pubkeyGroup, index) => ( - +
{this.state.pubkeys.length > 2 && (