Skip to content

Commit

Permalink
Merge pull request #1257 from gnosis/fix-all-tests
Browse files Browse the repository at this point in the history
refs/heads/fix-all-tests fix tests
  • Loading branch information
Dmitry Bespalov authored Jun 16, 2021
2 parents 9fea17b + 90ab54d commit cc98082
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions MultisigTests/Cross-layer/Logger/CrashlyticsLoggerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,7 @@ class MockCrashlytics: CrashlyticsProtocol {
// empty
}

func setCrashlyticsCollectionEnabled(_ enabled: Bool) {
// empty
}
}
8 changes: 5 additions & 3 deletions MultisigTests/Logic/Models/Transaction/TransactionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class TransactionTests: XCTestCase {
}

func testTransactoinEncodedData() throws {
let tx = Transaction(to: "0x8e6A5aDb2B88257A3DAc7A76A7B4EcaCdA090b66",
var tx = Transaction(to: "0x8e6A5aDb2B88257A3DAc7A76A7B4EcaCdA090b66",
value: "1000123",
data: "0x561001057600080fd5b5060405161060a3803806106",
operation: .delegate,
Expand All @@ -106,6 +106,8 @@ class TransactionTests: XCTestCase {
nonce: "12305734256",
safeTxHash: nil)

tx.safe = "0x092CC1854399ADc38Dad4f846E369C40D0a40307"

let domainHashInput = oneline("""
035aff83d86937d35b32e04f0ddc6ff469290eef2f1b692d8a815c89404d4749
000000000000000000000000092CC1854399ADc38Dad4f846E369C40D0a40307
Expand Down Expand Up @@ -134,8 +136,8 @@ ef8553f949acc5f0cb8002523b7a4f8e02664b6637eddc74ad72bb8e38588309
Safe.domainData(for: "0x092CC1854399ADc38Dad4f846E369C40D0a40307").toHexString().lowercased(),
domainHashInput.lowercased()
)
XCTAssertEqual(
tx.encodeTransactionData(for: "0x092CC1854399ADc38Dad4f846E369C40D0a40307").toHexString().lowercased(),
XCTAssertEqual(
tx.encodeTransactionData().toHexString().lowercased(),
txHashInput.lowercased()
)
}
Expand Down

0 comments on commit cc98082

Please sign in to comment.