Skip to content

Commit

Permalink
Merge pull request #81 from GenaDrop/stagging
Browse files Browse the repository at this point in the history
Stagging to main
  • Loading branch information
Ebube111 authored Jan 12, 2024
2 parents 11633ee + 7ceb14b commit 99dc294
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/BosGenaDrop/widget/CPlanet/DropsFund/Contest/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ function fetchNFTDetails() {

fetchNFTDetails()


function makeDescriptionShorter(desc) {
if (desc.length > 200) {
return desc.slice(0, 200) + "...";
Expand All @@ -494,6 +495,7 @@ const amountInYocto = Big(winnerDetails?.amount ?? 0)
.toFixed();


const lastProposalId = Near.view(props?.daoId, "get_last_proposal_id", {subscribe: true})

function handleCreateProposal() {
Near.call([
Expand All @@ -520,7 +522,7 @@ function handleCreateProposal() {
methodName: "set_payout_proposal_id",
args: {
contest_id: Number(props?.contestId),
proposal_id: Near.view(props?.daoId, "get_last_proposal_id", {subscribe: true}) + 1,
proposal_id: lastProposalId,
winner: props.owner,
},
gas: "300000000000000",
Expand Down
4 changes: 3 additions & 1 deletion build/BosGenaDrop/src/CPlanet/DropsFund/Contest/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ function fetchNFTDetails() {

fetchNFTDetails()


function makeDescriptionShorter(desc) {
if (desc.length > 200) {
return desc.slice(0, 200) + "...";
Expand All @@ -494,6 +495,7 @@ const amountInYocto = Big(winnerDetails?.amount ?? 0)
.toFixed();


const lastProposalId = Near.view(props?.daoId, "get_last_proposal_id", {subscribe: true})

function handleCreateProposal() {
Near.call([
Expand All @@ -520,7 +522,7 @@ function handleCreateProposal() {
methodName: "set_payout_proposal_id",
args: {
contest_id: Number(props?.contestId),
proposal_id: Near.view(props?.daoId, "get_last_proposal_id", {subscribe: true}) + 1,
proposal_id: lastProposalId,
winner: props.owner,
},
gas: "300000000000000",
Expand Down

0 comments on commit 99dc294

Please sign in to comment.