Skip to content

Commit 9dd697b

Browse files
authored
Merge branch 'main' into cursor/poseidon-lite-optional-loading-3ce2
2 parents b314bca + 2cf0668 commit 9dd697b

File tree

3 files changed

+6
-22
lines changed

3 files changed

+6
-22
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ All notable changes to the Aptos TypeScript SDK will be captured in this file. T
1212
- `EphemeralKeyPair.generate()` is now async (returns `Promise<EphemeralKeyPair>`)
1313
- Direct use of `new EphemeralKeyPair(...)` or `poseidonHash()` requires calling `await ensurePoseidonLoaded()` first
1414

15+
## Fixed
16+
17+
- Remove hardcoded `maxGasAmount: 2000` from e2e tests (Account Derivation APIs, WebAuthn submission) that caused `MAX_GAS_UNITS_BELOW_MIN_TRANSACTION_GAS_UNITS` failures after the on-chain minimum gas increas
18+
1519
# 6.2.0 (2026-03-22)
1620

1721
## Fixed

tests/e2e/api/account.test.ts

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ describe("account api", () => {
611611
beforeAll(async () => {
612612
await aptos.fundAccount({
613613
accountAddress: minterAccount.accountAddress,
614-
amount: FUND_AMOUNT,
614+
amount: FUND_AMOUNT * 100,
615615
});
616616
}, 10000);
617617

@@ -625,15 +625,11 @@ describe("account api", () => {
625625
});
626626
};
627627

628-
const DEFAULT_MAX_GAS_AMOUNT = 2000;
629628
async function createAccount(recipient: Account): Promise<CommittedTransactionResponse> {
630629
const transaction = await aptos.transferCoinTransaction({
631630
sender: minterAccount.accountAddress,
632631
recipient: recipient.accountAddress,
633-
amount: FUND_AMOUNT / 100,
634-
options: {
635-
maxGasAmount: DEFAULT_MAX_GAS_AMOUNT,
636-
},
632+
amount: FUND_AMOUNT,
637633
});
638634
const pendingTxn = await aptos.signAndSubmitTransaction({ signer: minterAccount, transaction });
639635
return await aptos.waitForTransaction({ transactionHash: pendingTxn.hash });
@@ -644,9 +640,6 @@ describe("account api", () => {
644640
sender: sender.accountAddress,
645641
recipient: sender.accountAddress,
646642
amount: 0,
647-
options: {
648-
maxGasAmount: DEFAULT_MAX_GAS_AMOUNT,
649-
},
650643
});
651644
const pendingTxn = await aptos.signAndSubmitTransaction({ signer: sender, transaction });
652645
return await aptos.waitForTransaction({ transactionHash: pendingTxn.hash });
@@ -682,9 +675,6 @@ describe("account api", () => {
682675
const rotateTxn = await aptos.rotateAuthKeyUnverified({
683676
fromAccount: account2,
684677
toNewPublicKey: account1.publicKey,
685-
options: {
686-
maxGasAmount: DEFAULT_MAX_GAS_AMOUNT,
687-
},
688678
});
689679
const pendingTxn = await aptos.signAndSubmitTransaction({ signer: account2, transaction: rotateTxn });
690680
await aptos.waitForTransaction({ transactionHash: pendingTxn.hash });
@@ -748,9 +738,6 @@ describe("account api", () => {
748738
const rotateTxn = await aptos.rotateAuthKey({
749739
fromAccount: account2,
750740
toNewPrivateKey: account1.privateKey,
751-
options: {
752-
maxGasAmount: DEFAULT_MAX_GAS_AMOUNT,
753-
},
754741
});
755742
const pendingTxn = await aptos.signAndSubmitTransaction({ signer: account2, transaction: rotateTxn });
756743
const response = await aptos.waitForTransaction({ transactionHash: pendingTxn.hash });
@@ -803,9 +790,6 @@ describe("account api", () => {
803790
const rotateTxn = await aptos.rotateAuthKey({
804791
fromAccount: account1,
805792
toNewPrivateKey: Ed25519PrivateKey.generate(),
806-
options: {
807-
maxGasAmount: DEFAULT_MAX_GAS_AMOUNT,
808-
},
809793
});
810794
const pendingTxn = await aptos.signAndSubmitTransaction({ signer: account1, transaction: rotateTxn });
811795
const response = await aptos.waitForTransaction({ transactionHash: pendingTxn.hash });
@@ -840,9 +824,6 @@ describe("account api", () => {
840824
const rotateTxn = await aptos.rotateAuthKeyUnverified({
841825
fromAccount: account2,
842826
toNewPublicKey: account1.publicKey,
843-
options: {
844-
maxGasAmount: DEFAULT_MAX_GAS_AMOUNT,
845-
},
846827
});
847828
const pendingTxn = await aptos.signAndSubmitTransaction({ signer: account2, transaction: rotateTxn });
848829
await aptos.waitForTransaction({ transactionHash: pendingTxn.hash });

tests/e2e/transaction/transactionSubmission.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,6 @@ describe("transaction submission", () => {
10571057
},
10581058
options: {
10591059
gasUnitPrice: 100,
1060-
maxGasAmount: 2000,
10611060
},
10621061
});
10631062

0 commit comments

Comments
 (0)