I am trying to call the following method from near-js-api for my contract. It takes Rsut AccountId as an argument.
What is the proper way to serialise an Account and pass it to the contract?
Furthermore, are there any special considerations when calling the contract initialiser?
#[near_bindgen] impl BurnerPool { #[init] fn new(token_id: AccountId) -> Self { assert!(!env::state_exists(), "Already initialized"); let pool = Self { token_id: token_id, total_received: 0, }; return pool; } }