Skip to content

Commit 934d48f

Browse files
Account abstraction integration tests Modules 7579, e2e, gas estimation etc
1 parent 81f7870 commit 934d48f

30 files changed

Lines changed: 6930 additions & 24 deletions

tests/Nethereum.AccountAbstraction.IntegrationTests/Bundler/EvmGasEstimationIntegrationTests.cs

Lines changed: 463 additions & 0 deletions
Large diffs are not rendered by default.

tests/Nethereum.AccountAbstraction.IntegrationTests/Bundler/MempoolTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private static MempoolEntry CreateTestEntry(
5555
PaymasterAndData = Array.Empty<byte>(),
5656
Signature = new byte[65]
5757
},
58-
EntryPoint = "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
58+
EntryPoint = "0x433709009B8330FDa32311DF1C2AFA402eD8D009", // v0.9
5959
Priority = priority ?? 1_000_000_000,
6060
Prefund = 1_000_000_000_000_000,
6161
ValidAfter = validAfter,

tests/Nethereum.AccountAbstraction.IntegrationTests/E2E/AAContractHandlerUserScenariosTests.cs

Lines changed: 304 additions & 15 deletions
Large diffs are not rendered by default.

tests/Nethereum.AccountAbstraction.IntegrationTests/E2E/DevChainBundlerAdvancedTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ public async Task Paymaster_SponsoredUserOp_DeductsFromPaymaster()
465465
{
466466
var paymasterDeployment = new TestPaymasterDeployment
467467
{
468-
EntryPoint = _fixture.EntryPointService.ContractAddress
468+
EntryPoint = _fixture.EntryPointService.ContractAddress,
469+
Owner = _fixture.OperatorAccount.Address
469470
};
470471

471472
var paymasterService = await TestPaymasterAcceptAllService.DeployContractAndGetServiceAsync(

tests/Nethereum.AccountAbstraction.IntegrationTests/E2E/ERC4337ValidationTests.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,8 @@ public async Task Given_PaymasterNoDeposit_When_SponsoringOp_Then_RevertsWithAA5
780780
// GIVEN: A paymaster with zero deposit (not enough to cover gas)
781781
var paymasterDeployment = new TestPaymasterAcceptAllDeployment
782782
{
783-
EntryPoint = _fixture.EntryPointService.ContractAddress
783+
EntryPoint = _fixture.EntryPointService.ContractAddress,
784+
Owner = _fixture.OperatorAccount.Address
784785
};
785786
var paymasterService = await TestPaymasterAcceptAllService.DeployContractAndGetServiceAsync(
786787
(Web3.Web3)_fixture.Web3, paymasterDeployment);
@@ -865,7 +866,8 @@ public async Task Given_PaymasterMinimalDeposit_When_SponsoringExpensiveOp_Then_
865866
// GIVEN: A paymaster with only 1 wei deposit (not enough for expensive operation)
866867
var paymasterDeployment = new TestPaymasterAcceptAllDeployment
867868
{
868-
EntryPoint = _fixture.EntryPointService.ContractAddress
869+
EntryPoint = _fixture.EntryPointService.ContractAddress,
870+
Owner = _fixture.OperatorAccount.Address
869871
};
870872
var paymasterService = await TestPaymasterAcceptAllService.DeployContractAndGetServiceAsync(
871873
(Web3.Web3)_fixture.Web3, paymasterDeployment);
@@ -961,7 +963,8 @@ public async Task Given_FundedPaymaster_When_SponsoringOp_Then_Succeeds()
961963
// GIVEN: A paymaster with sufficient deposit and stake
962964
var paymasterDeployment = new TestPaymasterAcceptAllDeployment
963965
{
964-
EntryPoint = _fixture.EntryPointService.ContractAddress
966+
EntryPoint = _fixture.EntryPointService.ContractAddress,
967+
Owner = _fixture.OperatorAccount.Address
965968
};
966969
var paymasterService = await TestPaymasterAcceptAllService.DeployContractAndGetServiceAsync(
967970
(Web3.Web3)_fixture.Web3, paymasterDeployment);

0 commit comments

Comments
 (0)