Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Peiyuan Liao committed Aug 27, 2021
1 parent 44e95e6 commit ee88eaa
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions eth/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ task("list_datasets", "List of datasets with alias")
task("remove_bounty", "Remove bounty without claiming")
.addParam("hash", "Dataset hash", "14797455496207951391356508759149962584765968173479481191220882411966396840571")
.addParam("publickey", "bounty issuer's publilckey", "./keys/out_public.json")
.addParam("mse", "mse cap, quantized", "18406")
.addParam("mse", "mse cap, quantized", "12888")
.setAction(async (taskArgs) => {
const provider = new hre.ethers.providers.JsonRpcProvider(process.env.URL);
const fs = require("fs");
Expand All @@ -104,11 +104,8 @@ task("remove_bounty", "Remove bounty without claiming")
const bounty = await write_contract.queryBounty(taskArgs.hash, pubKey, mse_cap);
const alias = bounty.ipfs;

console.log("Removing bounty on dataset: " + alias);
console.log("Removing bounty on dataset at: " + alias);
tx = await write_contract.removeBounty(taskArgs.hash, pubKey, mse_cap);
balance = await provider.getBalance(wallet.address);
console.log("Current Balance");
console.log(ethers.utils.formatEther(balance));
});

task("claim_bounty", "Claim bounty")
Expand Down Expand Up @@ -327,7 +324,7 @@ task("claim_bounty", "Claim bounty")
task("download_dataset", "download dataset")
.addParam("hash", "Dataset hash", "14797455496207951391356508759149962584765968173479481191220882411966396840571")
.addParam("publickey", "bounty issuer's publilckey", "./keys/out_public.json")
.addParam("mse", "mse cap, quantized", "18406")
.addParam("mse", "mse cap, quantized", "12888")
.addParam("path", "save path", "./ipfs_dataset")
.setAction(async (taskArgs) => {
console.log("Downloading from IPFS to " + taskArgs.path + " ...");
Expand Down

0 comments on commit ee88eaa

Please sign in to comment.