Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
metalurgical committed Apr 17, 2024
1 parent 2d122d0 commit a955643
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/Web3SwiftMpcProviderTests/MpcProviderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ final class Web3SwiftMpcProviderTests: XCTestCase {
func testSigningMessage() throws {
let params = EthTssAccountParams(publicKey: fullAddress, factorKey: factorKey, tssNonce: Int32(tssNonce), tssShare: tssShare, tssIndex: tssIndex, selectedTag: selected_tag, verifier: verifier, verifierID: verifierId, nodeIndexes: [], tssEndpoints: tssEndpoints, authSigs: sigs)

let account = EthereumTssAccount(params: params)
let account = try EthereumTssAccount(params: params)

let msg = "hello world"
let _ = try account.sign(message: msg)
}

func testSigningTransaction() throws {
let params = EthTssAccountParams(publicKey: fullAddress, factorKey: factorKey, tssNonce: Int32(tssNonce), tssShare: tssShare, tssIndex: tssIndex, selectedTag: selected_tag, verifier: verifier, verifierID: verifierId, nodeIndexes: [], tssEndpoints: tssEndpoints, authSigs: sigs)
let tssAccount = EthereumTssAccount(params: params)
let tssAccount = try EthereumTssAccount(params: params)
let chainID = 5
let amount = 0.001
let toAddress = tssAccount.address
Expand All @@ -114,7 +114,7 @@ final class Web3SwiftMpcProviderTests: XCTestCase {
func testSignTyped() throws {
let typedData = try decoder.decode(TypedData.self, from: example1)
let params = EthTssAccountParams(publicKey: fullAddress, factorKey: factorKey, tssNonce: Int32(tssNonce), tssShare: tssShare, tssIndex: tssIndex, selectedTag: selected_tag, verifier: verifier, verifierID: verifierId, nodeIndexes: [], tssEndpoints: tssEndpoints, authSigs: sigs)
let tssAccount = EthereumTssAccount(params: params)
let tssAccount = try EthereumTssAccount(params: params)
let _ = try tssAccount.signMessage(message: typedData)
}
}

0 comments on commit a955643

Please sign in to comment.