Skip to main content

is_contract

Function is_contract 

Source
fn is_contract(account: Option<AccountInfo>) -> bool
Expand description

Returns whether account has code. A zero code hash, which no code hashes to, is not code.