Skip to content

Commit

Permalink
added in app submissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-Stevers committed Sep 1, 2023
1 parent ebc13c9 commit 581d83f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/Claim/ClaimPage/ClaimButton/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -105,7 +105,7 @@ const ClaimButton = ({
bounty,
externalUserId,
closerAddress,
prUrl,
submissionId,
tier
);
resolve(result.transactionHash);
Expand Down
4 changes: 2 additions & 2 deletions services/ethers/OpenQClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 581d83f

Please sign in to comment.