ethers.js/lib.commonjs/_tests/test-providers-extra.js
2022-10-01 01:34:06 -04:00

17 lines
888 B
JavaScript

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const assert_1 = __importDefault(require("assert"));
const index_js_1 = require("../index.js");
const utils_js_1 = require("./utils.js");
describe("Test Etherscan extra APIs", function () {
(0, utils_js_1.retryIt)("test etherscanProvider.getContract", async function () {
const provider = new index_js_1.EtherscanProvider("mainnet", "FPFGK6JSW2UHJJ2666FG93KP7WC999MNW7");
const contract = await provider.getContract("dai.tokens.ethers.eth");
assert_1.default.ok(contract != null, "contract == null");
assert_1.default.equal(await contract.symbol(), "DAI", "contract.symbol");
});
});
//# sourceMappingURL=test-providers-extra.js.map