Skip to content

Commit

Permalink
Simplify test contract Deposit ← ContractsFactory (#1402)
Browse files Browse the repository at this point in the history
  • Loading branch information
quasiyoke committed Feb 10, 2025
1 parent 74add8d commit eef4ef8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 67 deletions.
66 changes: 0 additions & 66 deletions utils/e2e-tests/ts/lib/abis/contractsFactory.ts

This file was deleted.

29 changes: 29 additions & 0 deletions utils/e2e-tests/ts/lib/abis/deposit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// pragma solidity ^0.8.13;
//
// contract Deposit {
// constructor() payable {}
//
// function withdrawAll() external {
// (bool success, ) = msg.sender.call{value: address(this).balance}("");
// require(success, "Transfer failed!");
// }
// }

export default {
abi: [
{
type: "constructor",
inputs: [],
stateMutability: "payable",
},
{
type: "function",
name: "withdrawAll",
inputs: [],
outputs: [],
stateMutability: "nonpayable",
},
],
bytecode:
"0x608060405260f4806100105f395ff3fe6080604052348015600e575f5ffd5b50600436106026575f3560e01c8063853828b614602a575b5f5ffd5b60306032565b005b6040515f90339047908381818185875af1925050503d805f8114606f576040519150601f19603f3d011682016040523d82523d5f602084013e6074565b606091505b505090508060bb5760405162461bcd60e51b815260206004820152601060248201526f5472616e73666572206661696c65642160801b604482015260640160405180910390fd5b5056fea2646970667358221220ce7ea06cb9a3afb69b76e54771df61ff4f8e2efa0fabbb5f7ca5fb868448768664736f6c634300081c0033",
} as const;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, describe, it } from "vitest";
import { RunNodeState, runNode } from "../../lib/node";
import * as eth from "../../lib/ethViem";
import contractsFactory from "../../lib/abis/contractsFactory";
import contractsFactory from "../../lib/abis/deposit";
import "../../lib/expect";
import { beforeEachWithCleanup } from "../../lib/lifecycle";

Expand Down

0 comments on commit eef4ef8

Please sign in to comment.