forked from ethereum/remix-live
-
Notifications
You must be signed in to change notification settings - Fork 0
/
314.0.35.1.1692636596830.js
2 lines (2 loc) · 1.28 KB
/
314.0.35.1.1692636596830.js
1
2
"use strict";(self["webpackChunk"]=self["webpackChunk"]||[]).push([[314],{40314:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__='// Right click on the script name and hit "Run" to execute\nconst { expect } = require("chai");\nconst { ethers } = require("hardhat");\n\ndescribe("Storage", function () {\n it("test initial value", async function () {\n const Storage = await ethers.getContractFactory("Storage");\n const storage = await Storage.deploy();\n await storage.deployed();\n console.log(\'storage deployed at:\'+ storage.address)\n expect((await storage.retrieve()).toNumber()).to.equal(0);\n });\n it("test updating and retrieving updated value", async function () {\n const Storage = await ethers.getContractFactory("Storage");\n const storage = await Storage.deploy();\n await storage.deployed();\n const storage2 = await ethers.getContractAt("Storage", storage.address);\n const setValue = await storage2.store(56);\n await setValue.wait();\n expect((await storage2.retrieve()).toNumber()).to.equal(56);\n });\n});'}}]);
//# sourceMappingURL=314.0.35.1.1692636596830.js.map