-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(plugin-htlc-eth-besu): stop using the deprecated api.encodeP…
…acked 1. Add tests to vanilla HashTimeLock 2. Replace abi.encodePacked by abi.encode 3. Compile and replace generated ABIs (for HashTimeLock and PrivateHashTimeLock) Peter's additional changes: 1. Replace all the function calls that were missed. 2. Also update the hash function from sha256 to keccak256 where it was missed 3. Recompile the contracts again but with the VScode extension that gives them the additional properties with their metadata like the contract name that we use during deployment. 4. Modify the test case so that it computes the hash for the contract ID purely in Javascript instead of doing a call to the EVM to do the same. Co-authored-by: Peter Somogyvari <peter.somogyvari@accenture.com> Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
- Loading branch information
Showing
20 changed files
with
23,615 additions
and
49,334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.