This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Update this value w/ the HTML you want to convert | |
| const htmlToConvert = `<div>Hello World</div>` | |
| // Below is the conversion script | |
| const indentation = " " | |
| const _voidElements = new Set([ | |
| 'area', | |
| 'base', | |
| 'br', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WS_URL=wss://eth-mainnet.alchemyapi.io/v2/<key> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: Unlicense | |
| pragma solidity 0.8.10; | |
| import "ds-test/test.sol"; | |
| interface Hevm { | |
| // Expects an error on next call | |
| function expectRevert(bytes calldata) external; | |
| } |