dapptools
dapptools copied to clipboard
Dapp, Seth, Hevm, and more
**Log statements in test:** ```solidity emit log_int(-1); emit log_int(-2); emit log_int(-3); ``` **Logged output:** ``` ├─ emit log_int(: -2) ├─ emit log_int(: -3) ├─ emit log_int(: -4) ``` Logged negative...
``` pragma experimental "ABIEncoderV2"; contract A { struct A { uint x; uint y; } function test_A(A calldata a) external { } } ```
tl;dr - If a symbolic execution "prove" test is set up with a `int128` parameter, `int256` numbers are being passed in causing it to revert For my example, I cloned...
Maybe decode the abi like so ~`seth send --sexy "$WETH.transfer(address $BOB, uint256 100)"`~ `seth send "$WETH.transfer(address $BOB, uint256 100)"` This should be backwards compatible if we do not attempt to...
When debugging TX with extremely large calldata, such as the creation of a contract via a SingletonFactory (example on ethlive 0x91f839083a51356711099f740b5fc4bb6cb547deaa411694a92fd49aec2fcb54) the calldata can extend beyond the screen. AFAICT there...
```log m1:~ $ echo $NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM 1 m1:~ $ curl https://dapp.tools/install | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed...
When I do --no-src, everything is good. However, I want to view the src of just my txn, not any before it. However, when stepping through them with a `seth...
I have a smart contract which uses EIP-712 signatures in its API, which I want to test. The regular testing routine is to have a smart contract as a user,...
The call to the Uniswap contract `seth call --debug 0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45 ` fails with `hevm: @openzeppelin/contracts/drafts/IERC20Permit.sol: openBinaryFile: does not exist (No such file or directory)`. I reinstalled different versions of @openzeppelin/contracts...