-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tests to use account.signTransaction #571
base: feat/next
Are you sure you want to change the base?
Update tests to use account.signTransaction #571
Conversation
|
||
const userVerifier = new UserVerifier(new UserPublicKey(wallets.alice.address.getPublicKey())); | ||
const userVerifier = new UserVerifier(alice.publicKey); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can use account.verify()
?
Now I see, that we don't have separate verify_transaction
and verify_message
:
How about having so?
@@ -373,7 +365,7 @@ describe("ApiNetworkProvider Tests", function () { | |||
data: new Uint8Array(Buffer.from("dummy@05")), | |||
}); | |||
transaction.nonce = nonce + 1n; | |||
transaction.signature = await bob.signer.sign(transactionComputer.computeBytesForSigning(transaction)); | |||
transaction.signature = bob.signTransaction(transaction); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await
?
@@ -298,7 +289,7 @@ describe("ProxyNetworkProvider Tests", function () { | |||
let txOnNetwork = await proxy.simulateTransaction(transaction); | |||
assert.deepEqual(txOnNetwork.status, new TransactionStatus("success")); | |||
|
|||
transaction.signature = await bob.signer.sign(transactionComputer.computeBytesForSigning(transaction)); | |||
transaction.signature = bob.signTransaction(transaction); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await
- here and in other places, as needed?
No description provided.