diff --git a/apps/web/src/components/Contract/VoteConfirm.tsx b/apps/web/src/components/Contract/VoteConfirm.tsx index 5d35d65..40abc2b 100644 --- a/apps/web/src/components/Contract/VoteConfirm.tsx +++ b/apps/web/src/components/Contract/VoteConfirm.tsx @@ -17,7 +17,7 @@ interface VoteContent { const VoteProposal = ({ proposalId, action, proof, onClose }: VoteContent) => { const [isProcess, setProcess] = useState(false) const [isLoading, setIsLoading] = useState(false); - const [tzResultHash, setResultHash] = useState('') + const [tzResultHash, setResultHash] = useState(null) const handleVote = async () => { try { diff --git a/packages/tezos-interact/src/index.ts b/packages/tezos-interact/src/index.ts index 068a06f..e055c40 100644 --- a/packages/tezos-interact/src/index.ts +++ b/packages/tezos-interact/src/index.ts @@ -34,6 +34,7 @@ export const voteProposal = async (proposalNumber: number, vote: number) => { }) .then((hash) => { console.log(`Vote finished: https://better-call.dev/ghostnet/opg/${hash}`) + return hash }) .catch((error) => { console.log(`Vote error: ${JSON.stringify(error, null, 2)}`)