Skip to content

Commit

Permalink
remove uma version parameter, this will be determined internally
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Davis committed Sep 5, 2024
1 parent 02cf83b commit cbf8e31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
3 changes: 1 addition & 2 deletions uma-sdk/src/commonMain/kotlin/me/uma/UmaProtocolHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,6 @@ class UmaProtocolHelper @JvmOverloads constructor(
receivingCurrency: InvoiceCurrency,
expiration: Int,
isSubjectToTravelRule: Boolean,
umaVersion: String,
commentCharsAllowed: Int? = null,
senderUma: String? = null,
invoiceLimit: Int? = null,
Expand All @@ -926,7 +925,7 @@ class UmaProtocolHelper @JvmOverloads constructor(
receivingCurrency = receivingCurrency,
expiration = expiration,
isSubjectToTravelRule = isSubjectToTravelRule,
umaVersion = umaVersion,
umaVersion = UMA_VERSION_STRING,
commentCharsAllowed = commentCharsAllowed,
senderUma = senderUma,
invoiceLimit = invoiceLimit,
Expand Down
14 changes: 6 additions & 8 deletions uma-sdk/src/commonTest/kotlin/me/uma/UmaTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,9 @@ class UmaTests {
commentCharsAllowed = null,
senderUma = null,
invoiceLimit = null,
umaVersion = "0.3",
kycStatus = KycStatus.VERIFIED,
callback = "https://example.com/callback",
privateSigningKey = keys.privateKey
privateSigningKey = keys.privateKey,
)
assertTrue(UmaProtocolHelper().verifyUmaInvoice(invoice, PubKeyResponse(keys.publicKey, keys.publicKey)))
}
Expand All @@ -145,12 +144,11 @@ class UmaTests {
utxoCallback = "https://example.com/utxo",
travelRuleInfo = "travel rule info",
travelRuleFormat = TravelRuleFormat("someFormat", "1.0"),
requestedPayeeData =
createCounterPartyDataOptions(
"email" to true,
"name" to false,
"compliance" to true,
),
requestedPayeeData = createCounterPartyDataOptions(
"email" to true,
"name" to false,
"compliance" to true,
),
receiverUmaVersion = "1.0",
)
assertTrue(payreq is PayRequestV1)
Expand Down

0 comments on commit cbf8e31

Please sign in to comment.