mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-24 06:05:51 +00:00
feat: Jest Test Runner (#2170)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import binary from 'ripple-binary-codec'
|
||||
import keypairs from 'ripple-keypairs'
|
||||
import { encodeForSigningClaim } from 'ripple-binary-codec'
|
||||
import { sign } from 'ripple-keypairs'
|
||||
|
||||
import { xrpToDrops } from './xrpConversion'
|
||||
|
||||
@@ -17,11 +17,11 @@ function signPaymentChannelClaim(
|
||||
amount: string,
|
||||
privateKey: string,
|
||||
): string {
|
||||
const signingData = binary.encodeForSigningClaim({
|
||||
const signingData = encodeForSigningClaim({
|
||||
channel,
|
||||
amount: xrpToDrops(amount),
|
||||
})
|
||||
return keypairs.sign(signingData, privateKey)
|
||||
return sign(signingData, privateKey)
|
||||
}
|
||||
|
||||
export default signPaymentChannelClaim
|
||||
|
||||
Reference in New Issue
Block a user