Deployed simple contract
#[near_bindgen]
impl Contract {
pub fn hello() -> String {
String::from("hello")
}
pub fn num() -> u8 {
8
}
}
trying to call view method by
near view crossword.hilonom.testnet num
and have error
View call: crossword.hilonom.testnet.num()
An error occured
Error: Querying [object Object] failed: wasm execution failed with error: FunctionCallError(HostError(ProhibitedInView { method_name: "attached_deposit" })).
{
"error": "wasm execution failed with error: FunctionCallError(HostError(ProhibitedInView { method_name: \"attached_deposit\" }))",
"logs": [],
"block_height": 74645352,
"block_hash": "2eoywDD9s62T3swiJCNuXGwwxjhGFdFJuxTiMZ29JFxY"
}
how can i avoid this error?