mint and set uri

This commit is contained in:
yuexin 2023-06-26 11:46:48 +08:00
parent 79162847b4
commit 051a8b9b27
5 changed files with 287 additions and 172 deletions

View File

@ -8,6 +8,8 @@ module.exports = async function main(callback) {
await badgeInstance.batchMint(account, 1);
console.log(`success mint`);
}
await badgeInstance.updateBaseURI("https://gateway.pinata.cloud/ipfs/QmY6AS9NwbZERqoRRfLUwqwwBRepAhu2M4hkj39XRUfYro");
console.log("update uri over!")
callback(0);
} catch (err) {
console.log(err);

450
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -36,6 +36,7 @@
},
"dependencies": {
"@openzeppelin/contracts": "^4.5.0",
"fs-jetpack": "^5.1.0"
"fs-jetpack": "^5.1.0",
"truffle-flattener": "^1.6.0"
}
}

BIN
single.sol Normal file

Binary file not shown.

View File

@ -158,8 +158,8 @@ module.exports = {
production: true,
disableConfirmationListener: true,
from: arbOneAddr,
gas: 10000000, // Gas sent with each transaction (default: ~6700000)
gasPrice: 500000000, // 20 gwei (in wei) (default: 100 gwei)
gas: 1000000, // Gas sent with each transaction (default: ~6700000)
gasPrice: 5000000000, // 20 gwei (in wei) (default: 100 gwei)
},
kcc_testnet: {
provider: () =>