250x250
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- bitcoin
- 기준
- HTML
- concept
- node.js
- evm
- API
- CLASS
- Redux
- web
- REACT
- express.js
- CSS
- hardhat
- middleware
- graphQL
- SSR
- typeScript
- Ethereum
- error
- Interface
- tailwindcss
- solidity
- JavaScript
- nextJS
- blockchain
- 삶
- built in object
- Props
- useState
Archives
- Today
- Total
목록getLogs (1)
ReasonJun
Hardhat : Event filtering (attach, getLogs, topic, Interface, getTransactionReceipt, parseLog)
import { ethers } from "hardhat"; const contractAddress = "0x5FbDB2315678afecb367f032d93F642f64180aa3"; async function purchase(amount: number) { const VendingMachine = await ethers.getContractFactory("VendingMachine"); const vendingMachine = await VendingMachine.attach(contractAddress); const topic = [vendingMachine.filters.Purchase().topics!].toString(); const filter = { address: contractAddre..
Blockchain/HardHat
2023. 10. 20. 17:00