forked from ethereum/remix-live
-
Notifications
You must be signed in to change notification settings - Fork 0
/
314.plugin-etherscan.1692636579028.js
16 lines (12 loc) · 1.45 KB
/
314.plugin-etherscan.1692636579028.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[314],{
/***/ 40314:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony 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.plugin-etherscan.1692636579028.js.map