Hot answers tagged

1

solved this way: const compile = require('../compile'); const interface = JSON.parse(compile).contracts["Inbox.sol"].Inbox.abi; const bytecode = JSON.parse(compile).contracts["Inbox.sol"].Inbox.evm.bytecode.object;


1

Uniswap seems to have found a neat solution for this issue. Surround a part of your function with brackets: { // scope for _token{0,1}, avoids stack too deep errors address _token0 = token0; address _token1 = token1; require(to != _token0 && to != _token1, 'UniswapV2: INVALID_TO'); if (amount0Out > 0) _safeTransfer(_token0, to, amount0Out);...


Only top voted, non community-wiki answers of a minimum length are eligible