Commit 4c71963d authored by Developer's avatar Developer

update evm test

parent d3018005
...@@ -20,14 +20,25 @@ async function test() { ...@@ -20,14 +20,25 @@ async function test() {
await ttest.waitForDeployment(); await ttest.waitForDeployment();
console.log("Deployed TTest at address:", ttest.target); console.log("Deployed TTest at address:", ttest.target);
try {
console.log("Calling TTest.testBASEFEE()"); console.log("Calling TTest.testBASEFEE()");
const basefee = await ttest.testBASEFEE(); const basefee = await ttest.testBASEFEE();
console.log("Result:", basefee.toString()); console.log("Result:", basefee.toString());
} catch (error) {
console.error("Error calling testBASEFEE:", error.message);
}
try {
console.log("Calling TTest.testPREVRANDAO()"); console.log("Calling TTest.testPREVRANDAO()");
const prevrandao = await ttest.testPREVRANDAO(); const prevrandao = await ttest.testPREVRANDAO();
console.log("Result:", prevrandao.toString()); console.log("Result:", prevrandao.toString());
} catch (error) {
console.error("Error calling testPREVRANDAO:", error.message);
}
try { try {
console.log("Calling TTest.testBLOBHASH()"); console.log("Calling TTest.testBLOBHASH()");
const blobhash = await ttest.testBLOBHASH(); const blobhash = await ttest.testBLOBHASH();
...@@ -36,9 +47,13 @@ async function test() { ...@@ -36,9 +47,13 @@ async function test() {
console.error("Error calling testBLOBHASH:", error.message); console.error("Error calling testBLOBHASH:", error.message);
} }
try {
console.log("Calling TTest.testBLOBFEE()"); console.log("Calling TTest.testBLOBFEE()");
const blobfee = await ttest.testBLOBFEE(); const blobfee = await ttest.testBLOBFEE();
console.log("Result:", blobfee.toString()); console.log("Result:", blobfee.toString());
} catch (error) {
console.error("Error calling test:", error.message);
}
try { try {
console.log("Calling TTest.test()"); 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