Skip to content

Commit

Permalink
test(e2e): Berachain bArtion native transfer
Browse files Browse the repository at this point in the history
TheDivic committed Jan 22, 2025
1 parent de226f7 commit 3d78ed4
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion src/test/e2e/nativeTransfer.test.ts
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@ import {
gnosis,
blast,
baseSepolia,
berachainTestnetbArtio,
} from "viem/chains";
import {
BiconomySmartAccountV2,
@@ -344,7 +345,7 @@ describe("e2e", () => {
});
});

describe("optimism-mainnet", () => {
describe.skip("optimism-mainnet", () => {
const account = privateKeyToAccount(`0x${privateKey}`);

describe("EntryPoint v0.6.0", () => {
@@ -1159,6 +1160,44 @@ describe("e2e", () => {
});
});
});

describe.skip("berachain-bartio", () => {
const account = privateKeyToAccount(`0x${privateKey}`);

describe("EntryPoint v0.7.0", () => {
const bundlerUrl = `${bundlerHostname}/api/v3/${berachainTestnetbArtio.id}/biconomy`;

logConfig(berachainTestnetbArtio.id, bundlerUrl, account, "");

it("should perform a native transfer without a paymaster", async () => {
const nexusClient = await createNexusClient({
signer: account,
chain: berachainTestnetbArtio,
transport: http(),
bundlerTransport: http(bundlerUrl),
});

const smartAccountAddress = nexusClient.account.address;
console.log(`Nexus address: ${smartAccountAddress}`);

const hash = await nexusClient.sendTransaction({
calls: [
{
to: smartAccountAddress,
value: 1n,
},
],
});

const receipt = await nexusClient.waitForTransactionReceipt({ hash });
console.log(
`${berachainTestnetbArtio.name} EPv0.7.0 txHash: ${receipt.transactionHash}`,
);
console.log(receipt);
expect(receipt.status).toBe("success");
});
});
});
});

function logConfig(

0 comments on commit 3d78ed4

Please sign in to comment.