-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: we should expect one output for each data instead of an array of data outputs #34
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
Conversation
type?: string; | ||
data?: string[]; | ||
}>, | ||
outputs: preparedTx.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.
This was a bug, we were always sending params.outputs
, so we change output would never reach our client to review
65707c1
to
aeda3c6
Compare
@@ -61,6 +61,11 @@ describe('sendTransaction', () => { | |||
address: 'testAddress', | |||
token: '00', | |||
}], | |||
outputs: [{ | |||
address: 'testAddress', | |||
value: BigInt(100), |
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.
Shouldn't all values be bigint? Should we change the input value as well?
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.
Yes we should, done
@@ -61,6 +61,11 @@ describe('sendTransaction', () => { | |||
address: 'testAddress', | |||
token: '00', | |||
}], | |||
outputs: [{ | |||
address: 'testAddress', | |||
value: BigInt(100), |
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 100n
?
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.
Refactored everywhere to use n
instead of BigInt
6d8f3e4
to
76d2f94
Compare
2a8db7a
to
791fd97
Compare
Acceptance Criteria
Checklist
master
, confirm this code is production-ready and can be included in future releases as soon as it gets merged