Cyfrin / solidity-by-example.github.io

Solidity By Example
https://solidity-by-example.org/
MIT License
605 stars 191 forks source link

error in uni-directional payment channel #191

Closed phyBrackets closed 2 years ago

phyBrackets commented 2 years ago

In the line no. 23 - https://github.com/solidity-by-example/solidity-by-example.github.io/blob/9d1ad735bf76015c565a6b60d710e79ac11dae83/src/pages/app/uni-directional-payment-channel/UniDirectionalPaymentChannel.sol Function declared as pure, but this expression (potentially) reads from the environment or state and thus requires "view". return keccak256(abi.encodePacked(address(this), _amount));

t4sk commented 2 years ago

fixed. Thanks