Skip to content

Conversation

@AbhiPrasad
Copy link
Member

ref #5345

@AbhiPrasad AbhiPrasad requested a review from lobsterkatie July 8, 2022 18:55
@AbhiPrasad AbhiPrasad mentioned this pull request Jul 8, 2022
15 tasks
Comment on lines 120 to 121
activeTransaction.setName(matches[matches.length - 1].id);
activeTransaction.setMetadata({ source: 'route' });
Copy link
Member

@lobsterkatie lobsterkatie Jul 9, 2022

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.

2 participants