v4-core icon indicating copy to clipboard operation
v4-core copied to clipboard

[Bug]: Fix lockAcquired reference in README

Open starit opened this issue 2 years ago • 0 comments

Describe the bug

The Interface of lockAcquired in ILockCallback has been changed and it's incorrect to still use the old interface in README

It will cause the compile error for the first time who uses the code in README

It should remove the first parameter id and only keeps data

function lockAcquired(uint256 id, bytes calldata data) external returns (bytes memory) { // perform pool actions poolManager.swap(...) }

Expected Behavior

compile success

To Reproduce

No response

Additional context

No response

starit avatar Jul 14 '23 12:07 starit