-
Notifications
You must be signed in to change notification settings - Fork 295
remove statics dependency from sol module #6272
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
3c04edd
to
a2815d4
Compare
@@ -291,7 +303,8 @@ export class Transaction extends BaseTransaction { | |||
const instructionParams = instructionParamsFactory( | |||
this.type, | |||
this._solTransaction.instructions, | |||
this._coinConfig.name | |||
this._coinConfig.name, | |||
this._instructionsData |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may need to pass the token contract address in outputs, instructionData might not be available when building from a raw tx.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you share the example ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try to build a transaction from raw txHex of any unsupported token transaction, it will throw an error.
if (!token && _useTokenAddressTokenName) { | ||
token = mintAddress; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not pass tokenName undefined and token address as a separate fields and the populate token name and token address both in outputs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the approach was suggested by you, we can't pass the token name as undefined—these instructions are used in multiple places, which could lead to errors due to the undefined value.
Refer to the ticket description for details.
Ticket : WIN-5679