Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor #100

Merged
merged 9 commits into from
Apr 29, 2019
Merged

Refactor #100

merged 9 commits into from
Apr 29, 2019

Conversation

forshtat
Copy link
Member

No description provided.

Alex Forshtat and others added 9 commits April 28, 2019 19:51
1. Reading address from byte array. Almost trivial, need to account for
a difference between mload's word size (32 bytes) and address size (20).
2. Transform 'bytes' to 'bytes32'. Is indeed trivial, only need to read
32 bytes starting at 'offset' (aka 'index'). Can be copied into
RelayHub.

Also, set Solc version as 0.5.5 because required by '@0x' package.
We will need the 'getMethodSig' method for the penalize flow (methods
whitelist).
All methods in the Utils are 'public pure', so they should really be
deployed once.
After making all methods in the Recipient Utils 'internal', there is no
longer need to deploy the library - the code is inlined by solidity.
It is used in the RelayHub as well.
@drortirosh drortirosh merged commit fc851e9 into master Apr 29, 2019
@drortirosh drortirosh deleted the refactor branch April 29, 2019 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants