Skip to content

Commit

Permalink
Swap parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSte committed Oct 21, 2024
1 parent 0dca849 commit dcedab8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ impl<C: ContextObject> BuiltinProgram<C> {
pub fn register_function(
&mut self,
name: &str,
value: BuiltinFunction<C>,
dense_key: u32,
value: BuiltinFunction<C>,
) -> Result<(), ElfError> {
self.sparse_registry.register_function_hashed(name, value)?;
self.dense_registry
Expand Down
2 changes: 1 addition & 1 deletion tests/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ fn test_verifier_known_syscall() {

let mut loader = BuiltinProgram::new_loader_with_dense_registration(Config::default());
loader
.register_function("my_syscall", syscalls::SyscallString::vm, 2)
.register_function("my_syscall", 2, syscalls::SyscallString::vm)
.unwrap();
let executable = Executable::<TestContextObject>::from_text_bytes(
prog,
Expand Down

0 comments on commit dcedab8

Please sign in to comment.