-
Notifications
You must be signed in to change notification settings - Fork 6
more keylet functions #126
Conversation
projects/decoder_tests/src/lib.rs
Outdated
| let _ = trace_data(" IOU Asset:", &buf[..output_len as usize], DataRepr::AsHex); | ||
| } | ||
|
|
||
| fn test_deposit_preauth() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can these tests be alphabetized? Easier to see if something is missing that way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
wasm-host/src/host_functions_wamr.rs
Outdated
|
|
||
| pub fn check_keylet( | ||
| _env: wasm_exec_env_t, | ||
| account_buf_ptr: *mut u8, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not be mut
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
wasm-host/src/host_functions_wamr.rs
Outdated
|
|
||
| pub fn delegate_keylet( | ||
| _env: wasm_exec_env_t, | ||
| account_ptr: *mut u8, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto for all these functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| .register_host_function("float_root", float_root as *mut c_void, "(*~i*~i)i", 100, data_provider.as_ptr()) | ||
| .register_host_function("float_log", float_log as *mut c_void, "(*~*~i)i", 100, data_provider.as_ptr()) | ||
| .register_host_function("trace_opaque_float", trace_opaque_float as *mut c_void, "(*~*~)i", 500, data_provider.as_ptr()) | ||
| .register_host_function("check_keylet", check_keylet as *mut c_void, "(*~i*~)i", 350, data_provider.as_ptr()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do the *~ mean here? I'm not familiar with this syntax
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ptr-len
| let data_source = MockData::new(&tx_json, &lo_json, &lh_json, &l_json, &nft_json); | ||
| info!("Executing function: {}", args.function); | ||
| match vm_wamr::run_func(wasm_file, &args.function, Some(100000), data_source) { | ||
| match vm_wamr::run_func(wasm_file, &args.function, Some(1000000), data_source) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: this should be lowered before we release to match whatever we have in rippled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree. we have an issue created for that
#73
mvadari
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a couple questions but nothing to block merge
No description provided.