You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// `chain-id` is the EIP-155 Chain ID to which the session is bound, and the network where Contract Accounts MUST be resolved.
49
49
publicletchainId:BigUInt
50
50
/// `nonce` is a randomized token typically chosen by the relying party and used to prevent replay attacks, at least 8 alphanumeric characters.
51
-
publicletnonce:BigUInt
51
+
publicletnonce:String
52
52
/// `issued-at` is the ISO 8601 datetime string of the current time.
53
53
publicletissuedAt:Date
54
54
/// `expiration-time` (optional) is the ISO 8601 datetime string that, if present, indicates when the signed authentication message is no longer valid.
@@ -75,8 +75,7 @@ public final class EIP4361 {
75
75
let version =BigUInt(rawVersion, radix:10)??BigUInt(rawVersion, radix:16),
76
76
let rawChainId =groups["chainId"],
77
77
let chainId =BigUInt(rawChainId, radix:10)??BigUInt(rawChainId, radix:16),
78
-
let rawNonce =groups["nonce"],
79
-
let nonce =BigUInt(rawNonce, radix:10)??BigUInt(rawNonce, radix:16),
78
+
let nonce =groups["nonce"],
80
79
let rawIssuedAt =groups["issuedAt"],
81
80
let issuedAt = dateFormatter.date(from: rawIssuedAt)
0 commit comments