Hey guys,
Cool product, saw it come across my feed the other day so was playing around.
I was trying to see if I could get it to catch _mint()'s emitted SingleTransfer from 1155 standard and am having difficulty… So here’s what I have done.
-
Started a server
-
Synced it to local running Hardhat node ( Chain ID 1337 ) – Config below
-
Port forwarded to allow sync with suggested frp method ( Seems to work – says connected )
-
Added a sync and watch contract with
TransferSingle(address,address,address,uint256,uint256)
and the below ABI -
Verified contract address is correct – and verified that _mint()s are emitting TransferSingle via txHash
-
Issue tons of mints and nothing shows up.
ABI:
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "TransferSingle",
"type": "event"
}
HardhatConfig:
module.exports = {
solidity: "0.8.0",
defaultNetwork: 'localhost',
networks: {
hardhat: {
chainId: 1337
}
},
};
Things I’ve Tried:
-
Default hardhat chainID – I changed to 1337 after noticing in SyncEvents table on the dashboard that it references 1337 (0x539) as the chain ID for the watch
-
Local Hardhat Fork vs Local Hardhat Node – Same results
-
Try forcing the job to run again – Same results – Note that it does not show errors in log and is marked as success.
-
Have tried both with sync history and without
Appreciate any insight, I may try it with geth later when I have time to see if this is unique to hardhat. Unless I’m missing something really key here.
Thanks!