Skip to content

Commit

Permalink
Merge pull request #17 from tonkeeper/fix/v5
Browse files Browse the repository at this point in the history
Fix first w5 transfer
  • Loading branch information
grishamsc authored Aug 13, 2024
2 parents c48e590 + 0a0072a commit ae84c28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions Source/TonSwift/Wallets/WalletV5.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ public class WalletV5: WalletContract {

if (args.seqno == 0) {
// 32 bits with 1
for _ in 0..<4 {
try signingMessage.store(uint: 0xFFFFFFFF, bits: 8)
}
try signingMessage.store(uint: 0xFFFFFFFF, bits: 32)
} else {
let defaultTimeout = UInt64(Date().timeIntervalSince1970) + 60 // Default timeout: 60 seconds
try signingMessage.store(uint: args.timeout ?? defaultTimeout, bits: 32)
Expand Down
4 changes: 1 addition & 3 deletions Source/TonSwift/Wallets/WalletV5Beta.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ public class WalletV5BetaContract: WalletContract {

if (args.seqno == 0) {
// 32 bits with 1
for _ in 0..<4 {
try signingMessage.store(uint: 0xFFFFFFFF, bits: 8)
}
try signingMessage.store(uint: 0xFFFFFFFF, bits: 32)
} else {
let defaultTimeout = UInt64(Date().timeIntervalSince1970) + 60 // Default timeout: 60 seconds
try signingMessage.store(uint: args.timeout ?? defaultTimeout, bits: 32)
Expand Down

0 comments on commit ae84c28

Please sign in to comment.