-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add transaction submission api test #66
Conversation
0e79871
to
f212806
Compare
8049a8a
to
2f4cffe
Compare
2f4cffe
to
0f77724
Compare
At some point we should probably try to use the same little "test harness" for these lol, there's a ton of setup my transaction arguments test suite looks very similar heh |
signer: bob, | ||
transaction: rawTxn, | ||
|
||
await waitForTransaction({ aptosConfig: config, txnHash: response.hash }); |
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.
I think in general we should be doing a check here right? for each type
The node api will tell you if you have a fee payer signature, etc
const responseSignature = response.signature as TransactionFeePayerSignature;
expect(responseSignature.type).toEqual("fee_payer_signature");
this is what I do in mine
the 5 types:
ed25519_signature
secp256k1_ecdsa_signature
multi_agent_signature
fee_payer_signature
multi_ed25519_signature
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.
hmm I guess it depends on what you are testing. those tests tests that transaction is submitted. We have some other tests that tests the signature in sign_transaction
await fundAccounts(aptos, [ | ||
senderAccount, | ||
senderSecp256k1Account, | ||
...recieverAccounts, |
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.
...recieverAccounts, | |
...receiverAccounts, |
ctrl+f reciever
nit :D
0f77724
to
a926370
Compare
Pull request was closed
Description
Need #65 to land first.
Add transaction submission api function tests
secp256k1 is skipped for now because of a user txn processor issue #42
Test Plan
pnpm test