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

fix(rln-relay): on chain registration #1627

Merged
merged 2 commits into from
Mar 29, 2023
Merged

fix(rln-relay): on chain registration #1627

merged 2 commits into from
Mar 29, 2023

Conversation

rymnc
Copy link
Contributor

@rymnc rymnc commented Mar 28, 2023

Fixes on-chain registration with custom gas limit. Uncaught on ganache tests, need to revisit arguments later.

@rymnc rymnc self-assigned this Mar 28, 2023
@rymnc rymnc added this to the Release 0.17.0 milestone Mar 28, 2023
if pkParseRes.isErr():
raise newException(ValueError, "could not parse the private key")
ethRpc.privateKey = some(pkParseRes.get())
ethRpc.defaultAccount = ethRpc.privateKey.get().toPublicKey().toCanonicalAddress().Address
Copy link
Contributor Author

Choose a reason for hiding this comment

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

weird that we need to set the defaultAccount here, without which transactions use the zero address as the from address instead of deriving it from the pk.

@rymnc rymnc marked this pull request as ready for review March 28, 2023 15:42
@rymnc rymnc requested review from LNSD and jm-clius March 28, 2023 15:42
Copy link
Contributor

@LNSD LNSD left a comment

Choose a reason for hiding this comment

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

LGTM ✅

@rymnc rymnc merged commit b1bafda into master Mar 29, 2023
12 checks passed
@rymnc rymnc deleted the fix-rln-registration branch March 29, 2023 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants