Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

[PAN-2959] return the ethereum address of the privacy precompile from priv_getPrivacyPrecompileAddress #1766

Conversation

iikirilov
Copy link
Contributor

@iikirilov iikirilov commented Jul 26, 2019

PR description

Returns the ethereum address of the privacy precompile contract rather than the raw integer value of the position of the precompile.

See the discussion in #1650

Fixed Issue(s)

PAN-2959

Copy link
Contributor

@MadelineMurray MadelineMurray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this and got the following result:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"empty": false,
"zero": false,
"arrayUnsafe": "AAAAAAAAAAAAAAAAAAAAAAAAAH4="
}
}

@iikirilov iikirilov force-pushed the PAN-2959_eea_getPrivacyPrecompileAddress branch from 7b98924 to da71523 Compare July 28, 2019 11:43
@iikirilov
Copy link
Contributor Author

Sorted and tested with postman

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x000000000000000000000000000000000000007e"
}

@MadelineMurray MadelineMurray merged commit 237281e into PegaSysEng:master Jul 29, 2019
iikirilov added a commit to iikirilov/pantheon that referenced this pull request Jul 30, 2019
MadelineMurray pushed a commit that referenced this pull request Jul 30, 2019
@iikirilov iikirilov deleted the PAN-2959_eea_getPrivacyPrecompileAddress branch August 16, 2019 14:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants