https://github.com/code-423n4/2024-03-phala-network/blob/a01ffbe992560d8d0f17deadfb9b9a2bed38377e/phala-blockchain/crates/pink/runtime/src/runtime/extension.rs#L439
The function is_running_in_command (from the documentation) is missing or misnamed in the code to be is_it_in_transaction.
