Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Conversation

@pwang200
Copy link
Collaborator

@pwang200 pwang200 commented Aug 5, 2025

No description provided.

@pwang200 pwang200 requested a review from mvadari August 5, 2025 21:13
@pwang200 pwang200 changed the base branch from main to lastdevnet August 7, 2025 13:18
let _ = trace_data(" IOU Asset:", &buf[..output_len as usize], DataRepr::AsHex);
}

fn test_deposit_preauth() {
Copy link
Collaborator

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


pub fn check_keylet(
_env: wasm_exec_env_t,
account_buf_ptr: *mut u8,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not be mut

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


pub fn delegate_keylet(
_env: wasm_exec_env_t,
account_ptr: *mut u8,
Copy link
Collaborator

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@pwang200 pwang200 requested a review from mvadari August 8, 2025 15:42
.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())
Copy link
Collaborator

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

Copy link
Collaborator Author

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) {
Copy link
Collaborator

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

Copy link
Collaborator Author

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

Copy link
Collaborator

@mvadari mvadari left a 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

@pwang200 pwang200 merged commit 14e26ea into lastdevnet Aug 8, 2025
5 of 6 checks passed
@pwang200 pwang200 deleted the more_keylets3 branch August 8, 2025 19:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants