ethers.js/testcases/test-env/test-tsc/js-commonjs.ts

6 lines
159 B
TypeScript

const { ethers } = require("ethers");
console.log("Version:", ethers.version);
console.log(ethers.getAddress("0x0123456789abcdef0123456789abcdef01234567"));