-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fixes 2wp tests due to lovell changes. #208
Conversation
@@ -1197,30 +1187,33 @@ const assertReleaseBtcEvent = (releaseBtcEvent, releaseRequestedEvent) => { | |||
expect(releaseBtcEvent.arguments.releaseRskTxHash).to.be.equal(releaseRequestedEvent.arguments.rskTxHash); | |||
}; | |||
|
|||
const assertSuccessfulPegoutEventsAreEmitted = async (pegoutsEvents, pegoutRequestReceivedTransactionHash, senderRecipientInfo, pegoutValueInSatoshis, bridgeStateAfterPegoutCreation) => { | |||
|
|||
const assertSuccessfulPegoutEventsAreEmitted = async (pegoutsEvents, pegoutRequestReceivedTransactionHash, senderRecipientInfo, pegoutValueInWeisBN, pegoutValueInSatoshis, bridgeStateBeforePegoutCreation, bridgeStateAfterPegoutCreation) => { |
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.
i think is weird to receive both pegoutValueInWeis
and pegoutValueInSatoshis
. We could just receive the satoshis value and do the conversion to weis inside the method, wdyt?
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.
Yep, I agree, but none of the conversion tools round it like the Bridge does. I haven't been able to convert the weis values to satoshis like the Bridge, so, I felt forced to hard code it here.
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.
oh okey, i see.
what if we simplify the expectedPegoutValueInSatoshi? Is the same?
9685358
to
8bfe343
Compare
9e0f53b
to
b86b89d
Compare
|
No description provided.