mint one gacha
This commit is contained in:
parent
39e4841889
commit
79162847b4
16
init_scripts/generate_badge.js
Normal file
16
init_scripts/generate_badge.js
Normal file
@ -0,0 +1,16 @@
|
||||
const Badge = artifacts.require("tokens/erc721/BEBadge");
|
||||
|
||||
module.exports = async function main(callback) {
|
||||
try {
|
||||
let account = "0x93Ee7F7eBAeF20613cFc0137f64Df0157b5fFa69";
|
||||
const badgeInstance = await Badge.deployed();
|
||||
{
|
||||
await badgeInstance.batchMint(account, 1);
|
||||
console.log(`success mint`);
|
||||
}
|
||||
callback(0);
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
callback(1);
|
||||
}
|
||||
};
|
@ -18,6 +18,7 @@
|
||||
"deploy:release:arbitrum_testnet": "DEPLOY_ENV=release truffle migrate --network arbitrum_testnet --compile-none",
|
||||
"update:nft_setting": "npx truffle exec --network arbitrum_testnet ./init_scripts/update_nft_setting.js",
|
||||
"mint_presale:dev": "npx truffle exec --network development ./init_scripts/generate_presalebox.js",
|
||||
"mint_badge:one": "npx truffle exec --network arbitrum_one ./init_scripts/generate_badge.js",
|
||||
"gacha_deploy:one": "DEPLOY_ENV=release truffle migrate --network arbitrum_one -f 8 --to 8 --compile-none",
|
||||
"size": "truffle run contract-size"
|
||||
},
|
||||
|
@ -158,8 +158,8 @@ module.exports = {
|
||||
production: true,
|
||||
disableConfirmationListener: true,
|
||||
from: arbOneAddr,
|
||||
gas: 50000000, // Gas sent with each transaction (default: ~6700000)
|
||||
gasPrice: 100000000, // 20 gwei (in wei) (default: 100 gwei)
|
||||
gas: 10000000, // Gas sent with each transaction (default: ~6700000)
|
||||
gasPrice: 500000000, // 20 gwei (in wei) (default: 100 gwei)
|
||||
},
|
||||
kcc_testnet: {
|
||||
provider: () =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user