File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import {CALL_ACTOR_BY_ID} from "fvm-solidity/FVMPrecompiles.sol";
55import {REWARD_ACTOR_ID} from "fvm-solidity/FVMActors.sol " ;
66import {NO_FLAGS} from "fvm-solidity/FVMFlags.sol " ;
77import {CBOR_CODEC} from "fvm-solidity/FVMCodec.sol " ;
8+ import {EXIT_SUCCESS} from "fvm-solidity/FVMErrors.sol " ;
89
910import {
1011 REGISTER_STREAM,
@@ -45,8 +46,8 @@ library FVMRewards {
4546 /// length; a mismatch has no encoding.
4647 error ArrayLengthMismatch (uint256 ids , uint256 records );
4748
48- int256 internal constant EXIT_SUCCESS = 0 ;
49- /// @dev Returned when the precompile itself fails, distinguishing that from any actor code .
49+ /// @dev Sentinel for the unexpected case where the syscall reverts or returns fewer than 32
50+ /// bytes. Kept at -1 to match `fvm-solidity`'s behavior .
5051 int256 internal constant EXIT_PRECOMPILE_FAILED = - 1 ;
5152
5253 uint256 private constant ENVELOPE_HEAD = 0xe0 ;
You can’t perform that action at this time.
0 commit comments