Skip to main content

entrypoint_id

Function entrypoint_id 

Source
pub fn entrypoint_id(
    interface: &str,
    version: &str,
    method: &str,
) -> ContractEntrypointID
Expand description

Compute the entrypoint selector for a contract method.

It is derived from the contract’s interface name, version, and method name exactly as the thruput CLI derives selectors, so tests can name methods instead of pasting raw hex (which drifts whenever a fixture is rebuilt).

let bump = thruput_testkit::entrypoint_id("CallerCounter", "0.1.0", "bump");