You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that the segfault is due to using the try/catch in a test. I use HardHat with ethers.js and the bun test runner to test Solidity contracts.
test("Revert with insufficient funds",async()=>{const[token,owner,acc1]=awaitloadFixture(contractAndAccounts)try{awaittoken.connect(acc1).transfer(owner,1n)}catch(e){console.log(e)}})
How can we reproduce the crash?
Hi,
I think that the segfault is due to using the
try/catch
in a test. I use HardHat with ethers.js and the bun test runner to test Solidity contracts.The full example is at https://github.com/volodymyrprokopyuk/problem-solving/blob/master/solidity/tests/Token.test.js
Thank you for doing the exceptional work!
Relevant log output
No response
Stack Trace (bun.report)
Bun v1.1.31 (
e448c4c
) on linux x86_64_baseline [TestCommand]Segmentation fault at address 0x00000020
ZigGlobalObject.cpp:308
:formatStackTraceToJSValue
ZigGlobalObject.cpp:2642
:Zig::jsFunctionDefaultErrorPrepareStackTrace
ld-temp.o:0
:llint_call_javascript
ld-temp.o:0
:JSC::Interpreter::executeCall
ZigGlobalObject.cpp:336
:formatStackTraceToJSValue
ZigGlobalObject.cpp:697
:computeErrorInfoWithPrepareStackTrace
ZigGlobalObject.cpp:737
:computeErrorInfoToJSValue
Features: jsc, no_avx2, transpiler_cache, tsconfig
The text was updated successfully, but these errors were encountered: