Skip to content

Commit

Permalink
refactor: Rename callcode test file
Browse files Browse the repository at this point in the history
It now contains general message context and storage for different call
types
  • Loading branch information
drklee3 committed Oct 24, 2024
1 parent 6f336dc commit 8d6101e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ describe("Message calls", () => {
gas: defaultGas,
data,
};

case "callcode":
if (callCodeValue) {
// Custom value, use functionCallCodeWithValue that calls the
Expand Down Expand Up @@ -160,7 +161,7 @@ describe("Message calls", () => {
describe("msg.sender", () => {
let ctx: TestContext<"ContextInspector">;

before("deploy implementation contract", async function () {
before("deploy ContextInspector implementation contract", async function () {
const contract = await hre.viem.deployContract("ContextInspector");
ctx = {
lowLevelCaller: lowLevelCaller,
Expand Down Expand Up @@ -273,7 +274,7 @@ describe("Message calls", () => {
describe("msg.value", () => {
let ctx: TestContext<"ContextInspector">;

before("deploy implementation contract", async function () {
before("deploy ContextInspector implementation contract", async function () {
const contract = await hre.viem.deployContract("ContextInspector");
ctx = {
lowLevelCaller: lowLevelCaller,
Expand Down Expand Up @@ -377,7 +378,7 @@ describe("Message calls", () => {
describe("storage location", () => {
let ctx: TestContext<"StorageBasic">;

before("deploy called contract", async function () {
before("deploy storage implementation contract", async function () {
const contract = await hre.viem.deployContract("StorageBasic");
ctx = {
lowLevelCaller: lowLevelCaller,
Expand Down

0 comments on commit 8d6101e

Please sign in to comment.