File tree Expand file tree Collapse file tree
contracts/test/registry-stub/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,21 +13,21 @@ pub struct RegistryStub;
1313
1414#[ contractimpl]
1515impl RegistryStub {
16- pub fn __constructor ( env : Env , manager : Address ) {
16+ pub fn __constructor ( env : & Env , manager : & Address ) {
1717 env. storage ( ) . instance ( ) . set ( & Key :: Manager , & manager) ;
1818 }
1919
2020 /// Mirrors the real registry's manager-only entry points: requires the
2121 /// stored manager's auth and records the value so tests can assert the
2222 /// call went through.
23- pub fn manager_only ( env : Env , value : u32 ) -> u32 {
23+ pub fn manager_only ( env : & Env , value : u32 ) -> u32 {
2424 let manager: Address = env. storage ( ) . instance ( ) . get ( & Key :: Manager ) . unwrap ( ) ;
2525 manager. require_auth ( ) ;
2626 env. storage ( ) . instance ( ) . set ( & Key :: Recorded , & value) ;
2727 value
2828 }
2929
30- pub fn recorded ( env : Env ) -> Option < u32 > {
30+ pub fn recorded ( env : & Env ) -> Option < u32 > {
3131 env. storage ( ) . instance ( ) . get ( & Key :: Recorded )
3232 }
3333}
You can’t perform that action at this time.
0 commit comments