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

ref(remix): Add transaction source #5398

Merged
merged 1 commit into from Jul 11, 2022
Merged

Conversation

AbhiPrasad
Copy link
Member

ref #5345

Comment on lines 120 to 121
activeTransaction.setName(matches[matches.length - 1].id);
activeTransaction.setMetadata({ source: 'route' });
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
activeTransaction.setName(matches[matches.length - 1].id);
activeTransaction.setMetadata({ source: 'route' });
activeTransaction.setName(matches[matches.length - 1].id, 'route');

As of #5396, you can now do this in one go:

public setName(name: string, source: TransactionMetadata['source'] = 'custom'): void {
this.name = name;
this.metadata.source = source;
}

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@AbhiPrasad AbhiPrasad force-pushed the abhi-remix-transaction-source branch from 397c160 to a6bc99d Compare July 11, 2022 12:55
@AbhiPrasad AbhiPrasad enabled auto-merge (squash) July 11, 2022 12:55
@AbhiPrasad AbhiPrasad merged commit 2c6683f into master Jul 11, 2022
@AbhiPrasad AbhiPrasad deleted the abhi-remix-transaction-source branch July 11, 2022 13:07
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.

None yet

2 participants