Skip to content

Commit

Permalink
Merge pull request #35 from hollow-leaf/fix/showTzHash
Browse files Browse the repository at this point in the history
fix: add tz hash url
  • Loading branch information
kidneyweakx authored Aug 25, 2023
2 parents 4fbb9c5 + fdd5059 commit 4a17746
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/components/Contract/VoteConfirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions packages/tezos-interact/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`)
Expand Down

0 comments on commit 4a17746

Please sign in to comment.