Add export/import functionality #224

Merged
raucao merged 23 commits from feature/export-import into master 2022-09-02 20:31:28 +00:00
Showing only changes of commit 258c1cc755 - Show all commits

View File

@ -7,7 +7,7 @@ async function main() {
console.log(`Using Contribution at: ${kredits.Contribution.contract.address}`);
const count = await kredits.Contribution.count;
const currentBlockHeight = await XMLHttpRequest.ethers.provider.getBlockNumber();
const currentBlockHeight = await hre.ethers.provider.getBlockNumber();
raucao marked this conversation as resolved Outdated
Outdated
Review

why XMLHttpRequest ? should this be hre.ethers.provider?

why `XMLHttpRequest` ? should this be ` hre.ethers.provider`?

Copied from somewhere, but now I can't find from where exactly. I'll change it. By the way, you added this yourself, according to Git. :)

Copied from somewhere, but now I can't find from where exactly. I'll change it. By the way, you added this yourself, according to Git. :)
const backup = {};
const promises = [];