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 relayed v3 with relayer one of the participants leading to free txs #6704

Merged
merged 3 commits into from
Jan 14, 2025

Conversation

sstanculeanu
Copy link
Collaborator

@sstanculeanu sstanculeanu commented Jan 13, 2025

Reasoning behind the pull request

  • txs v3 relayed by one of the parties do not consume the fee

Proposed changes

  • fixed this edge case by only loading the account once if the relayer is one of the participants

Testing procedure

  • with feat branch + scenario

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

@sstanculeanu sstanculeanu added the ignore-for-release-notes Do not include item in release notes label Jan 13, 2025
@sstanculeanu sstanculeanu self-assigned this Jan 13, 2025
@@ -357,6 +369,119 @@ func testRelayedV3ScCall(
}
}

func testRelayedV3RelayedBySenderMoveBalance() func(t *testing.T) {
return func(t *testing.T) {
if testing.Short() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Generally speaking, should be done within the "top-level" test function. But can be kept as it is.

@sstanculeanu sstanculeanu merged commit 7c3462b into feat/relayedv3 Jan 14, 2025
4 checks passed
@sstanculeanu sstanculeanu deleted the fix_relayed_by_participants branch January 14, 2025 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore-for-release-notes Do not include item in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants