Skip to content

Instantly share code, notes, and snippets.

// Report on "stuck" ether in empty contracts
// https://github.com/ethereum/EIPs/issues/156
// Usage: node find-stuck-ether.js [startBlock] [endBlock] > report.txt
let Eth = require('ethjs');
let eth = new Eth(new Eth.HttpProvider('http://localhost:8545'));
let ethutil = require('ethereumjs-util')
async function main() {
pragma solidity ^0.4.8;
contract Experiment1 {
event LogDebug(uint val);
function trigger(uint[] a, bytes32 b) external {
LogDebug(a.length);
}
}