E1861: native call without a stack claim
The stack bound of a meta stack_limit verb includes the code it calls (ADR-0103).
The stack bound of a meta stack_limit verb includes the code it calls
(ADR-0103). The compiler cannot see inside an unsafe extern function, so
that function must state how much stack it uses, with its own
meta stack_limit(bytes: N). The claim covers everything the native function
calls. The compiler trusts it and does not check it. The error points at the
call and names the function.
Example
actus
Fix
Declare the stack claim on the unsafe extern function.
actus
toml
Run actus explain E1861 in your terminal to read this entry offline. Browse Strict & toolchain or all error codes.