Skip to content

Conversation

@veetragjain
Copy link
Contributor

Ticket: WIN-5533

@veetragjain veetragjain marked this pull request as ready for review June 10, 2025 23:41
@veetragjain veetragjain requested a review from a team as a code owner June 10, 2025 23:41

if (txPrebuild.coin === 'eos' || txPrebuild.coin === 'teos') {
const expectedSymbol = _.isNil(txPrebuild.token) ? 'EOS' : txPrebuild.token.split(':')[1];
const expectedSymbol = _.isNil(txPrebuild.token) ? 'EOS' : (coins.get(txPrebuild.token) as EosCoin).symbol;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we pass tokenSymbol as a parameter instead of fetching it from statics?
As you know, we're working on removing the statics dependency from the module as part of the AMS integration. So, let's avoid using statics for any new integrations.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It cannot be passed down, it can only be fetched from statics coin map in current state. Moreover this function is not used to build transactions on wp, it's used on client side to verify the build obtained from wp.

@veetragjain veetragjain requested a review from mukeshsp June 11, 2025 05:51
@veetragjain veetragjain merged commit 80386eb into master Jun 11, 2025
12 checks passed
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.

3 participants