You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use odra::List;#[odra::module]pubstructContract{list:List<u8>}#[odra::module]implContract{pubfnadd(&self,value:u8){self.list.append(value);}pubfnget(&self,index:u32) -> Option<u32>{self.list.get(index)}}
It should be implemented using Mapping and indexed from 0.
The text was updated successfully, but these errors were encountered:
Allow for:
It should be implemented using Mapping and indexed from 0.
The text was updated successfully, but these errors were encountered: