Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @dev Decodes abi encoded data with selector for "register(bytes32,address,bytes32,bytes32)".
- * @param _data Abi encoded data.
- * @return Decoded registry call.
- */
- function abiDecodeRegister(
- bytes _data
- )
- private
- pure
- returns(
- bytes4 sig,
- bytes32 label,
- address account,
- bytes32 pubkeyA,
- bytes32 pubkeyB
- )
- {
- assembly {
- sig := mload(add(_data, add(0x20, 0)))
- label := mload(add(_data, 36))
- account := mload(add(_data, 68))
- pubkeyA := mload(add(_data, 100))
- pubkeyB := mload(add(_data, 132))
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement