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

Nonce workarounds #39

Merged
merged 14 commits into from
Apr 5, 2024
Merged

Nonce workarounds #39

merged 14 commits into from
Apr 5, 2024

Conversation

anihamde
Copy link
Contributor

  • added a field to store subwallets
  • added add and remove methods for subwallets
  • added modifier to distinguish btwn relayerPrimary and all relayer wallets

@@ -66,6 +85,7 @@ contract ExpressRelayState is IExpressRelay {
*/
function setRelayer(address relayer) public onlyAdmin {
state.relayer = relayer;
state.relayerSubwallets = new address[](0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please write some tests for this line of logic

state.relayerSubwallets.push(subwallet);
}

function removeRelayerSubwallet(
Copy link
Collaborator

Choose a reason for hiding this comment

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

add docs for this function too

@anihamde anihamde merged commit 9ac7cc8 into main Apr 5, 2024
1 check passed
@anihamde anihamde deleted the nonce_workarounds branch April 5, 2024 17:11
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.

2 participants