Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { HardhatUserConfig } from "hardhat/config";
- import "@nomicfoundation/hardhat-toolbox";
- import 'dotenv/config';
- const config: HardhatUserConfig = {
- solidity: {
- version: "0.8.19",
- settings: {
- optimizer: {
- enabled: false,
- runs: 200
- }
- }
- },
- defaultNetwork: "bsc_l1",
- networks: {
- hardhat: {
- loggingEnabled: false
- },
- bsc_l1: {
- loggingEnabled: true,
- url: "http://127.0.0.1:8545",
- chainId: 900,
- accounts: [
- "59ba8068eb256d520179e903f43dacf6d8d57d72bd306e1bd603fdb8c8da10e8", //0x04d63aBCd2b9b1baa327f2Dda0f873F197ccd186
- ],
- }
- }
- };
- export default config;
- import hre from "hardhat";
- import { Signer, Transaction } from "ethers";
- import { formatEther } from "ethers";
- import { Minimal } from "../typechain-types";
- import chai, {expect} from "chai";
- import chaiAsPromised from "chai-as-promised";
- import sharp from 'sharp';
- import {getSvgFromTokenUri} from "./utils"
- chai.use(chaiAsPromised);
- describe("TestNft", function() {
- let nft: TestNft;
- let Owner: Signer;
- it("should deploy Minimal contract sucessfully at low deploy costs", async () => {
- [Owner] = await hre.ethers.getSigners();
- const ownerAddress = await Owner.getAddress();
- const balance = await hre.ethers.provider.getBalance(ownerAddress);
- console.log("Owner Address:", ownerAddress);
- console.log("Balance:", formatEther(balance), "ETH");
- const contractFactory = await hre.ethers.getContractFactory("Minimal");
- const min = await contractFactory.connect(Owner).deploy() as Minimal;
- await min.waitForDeployment();
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment