This commit is contained in:
2026-10-20 10:48:13 +02:00
parent 5d32f0a3da
commit d2171d3f69
18 changed files with 3706 additions and 7 deletions

View File

@@ -0,0 +1,22 @@
import { network } from "hardhat";
const { ethers } = await network.create({
network: "hardhatOp",
chainType: "op",
});
console.log("Sending transaction using the OP chain type");
const [sender] = await ethers.getSigners();
console.log("Sending 1 wei from", sender.address, "to itself");
console.log("Sending L2 transaction");
const tx = await sender.sendTransaction({
to: sender.address,
value: 1n,
});
await tx.wait();
console.log("Transaction sent successfully");