Skip to content

Commit

Permalink
Fix syscalls signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
techraed committed Dec 3, 2023
1 parent ec5888b commit 8d46823
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions utils/wasm-instrument/src/syscalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ impl SyscallName {
.into(),
ErrPtr::ErrorCode,
)),
Self::ReplyPushInput => SyscallSignature::gr_fallible(([Offset, Length].into(), ErrPtr::ErrorCode)),
Self::ReplyPushInput => {
SyscallSignature::gr_fallible(([Offset, Length].into(), ErrPtr::ErrorCode))
}
Self::ReplyTo => {
SyscallSignature::gr_fallible(ErrPtr::ErrorWithHash(HashType::MessageId))
}
Expand Down Expand Up @@ -480,7 +482,9 @@ impl SyscallName {
ErrPtr::ErrorWithHash(HashType::MessageId),
)),
Self::Size => SyscallSignature::gr_infallible([Ptr::MutLength.into()]),
Self::Source => SyscallSignature::gr_infallible([Ptr::Hash(HashType::ActorId).into()]),
Self::Source => {
SyscallSignature::gr_infallible([Ptr::MutHash(HashType::ActorId).into()])
}
Self::Value => SyscallSignature::gr_infallible([Ptr::MutValue.into()]),
Self::CreateProgram => SyscallSignature::gr_fallible((
[
Expand Down Expand Up @@ -524,7 +528,7 @@ impl SyscallName {
ErrPtr::ErrorCode,
)),
Self::ReserveGas => SyscallSignature::gr_fallible((
[Gas, DelayBlockNumber].into(),
[Gas, DurationBlockNumber].into(),
ErrPtr::ErrorWithHash(HashType::ReservationId),
)),
Self::UnreserveGas => SyscallSignature::gr_fallible((
Expand Down

0 comments on commit 8d46823

Please sign in to comment.