Commit 4c71963d authored by Developer's avatar Developer

update evm test

parent d3018005
......@@ -20,13 +20,24 @@ async function test() {
await ttest.waitForDeployment();
console.log("Deployed TTest at address:", ttest.target);
console.log("Calling TTest.testBASEFEE()");
const basefee = await ttest.testBASEFEE();
console.log("Result:", basefee.toString());
try {
console.log("Calling TTest.testBASEFEE()");
const basefee = await ttest.testBASEFEE();
console.log("Result:", basefee.toString());
} catch (error) {
console.error("Error calling testBASEFEE:", error.message);
}
try {
console.log("Calling TTest.testPREVRANDAO()");
const prevrandao = await ttest.testPREVRANDAO();
console.log("Result:", prevrandao.toString());
} catch (error) {
console.error("Error calling testPREVRANDAO:", error.message);
}
console.log("Calling TTest.testPREVRANDAO()");
const prevrandao = await ttest.testPREVRANDAO();
console.log("Result:", prevrandao.toString());
try {
console.log("Calling TTest.testBLOBHASH()");
......@@ -36,9 +47,13 @@ async function test() {
console.error("Error calling testBLOBHASH:", error.message);
}
console.log("Calling TTest.testBLOBFEE()");
const blobfee = await ttest.testBLOBFEE();
console.log("Result:", blobfee.toString());
try {
console.log("Calling TTest.testBLOBFEE()");
const blobfee = await ttest.testBLOBFEE();
console.log("Result:", blobfee.toString());
} catch (error) {
console.error("Error calling test:", error.message);
}
try {
console.log("Calling TTest.test()");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment