From 581d83f1e0f72125873a70a05a387a9af6c4c2b0 Mon Sep 17 00:00:00 2001 From: Christopher Stevers Date: Fri, 1 Sep 2023 09:59:05 -0400 Subject: [PATCH] added in app submissions --- components/Claim/ClaimPage/ClaimButton/index.jsx | 4 ++-- services/ethers/OpenQClient.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/Claim/ClaimPage/ClaimButton/index.jsx b/components/Claim/ClaimPage/ClaimButton/index.jsx index 3b33e82d4..a0842995f 100644 --- a/components/Claim/ClaimPage/ClaimButton/index.jsx +++ b/components/Claim/ClaimPage/ClaimButton/index.jsx @@ -96,7 +96,7 @@ const ClaimButton = ({ if ((bounty.bountyType === '2') | (bounty.bountyType === '3')) { // TODO Re-add the actual code for PRs here IF we continue to use PRs for submissions // Unsure if an empty string will work here, using a placeholder for now - const prUrl = 'https://github.com/SporkDAOOfficial/ETHDenver-2023/pull/456'; + const submissionId = 'asdfasdfs'; const externalUserId = accountData.github; const closerAddress = account; const tier = targetTier; @@ -105,7 +105,7 @@ const ClaimButton = ({ bounty, externalUserId, closerAddress, - prUrl, + submissionId, tier ); resolve(result.transactionHash); diff --git a/services/ethers/OpenQClient.js b/services/ethers/OpenQClient.js index daa6d8445..bae44c461 100755 --- a/services/ethers/OpenQClient.js +++ b/services/ethers/OpenQClient.js @@ -551,13 +551,13 @@ class OpenQClient { }); }; - claimTieredPermissioned = async (library, bounty, externalUserId, closerAddress, prUrl, tier) => { + claimTieredPermissioned = async (library, bounty, externalUserId, closerAddress, submissionId, tier) => { const { bountyAddress } = bounty; return new Promise(async (resolve, reject) => { const abiCoder = new ethers.utils.AbiCoder(); const closerData = abiCoder.encode( ['address', 'string', 'address', 'string', 'uint256'], - [bountyAddress, externalUserId, closerAddress, prUrl, tier] + [bountyAddress, externalUserId, closerAddress, submissionId, tier] ); const signer = library.getSigner(); const contract = this.ClaimManager(signer);