File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 2525{
2626 let ( wasm_blob, ns) = build_wasm ( src) ;
2727
28- let env =
29- SorobanEnv :: new_with_contract ( wasm_blob, configure_env) . insert_diagnostics ( ns. diagnostics ) ;
30-
31- env
28+ SorobanEnv :: new_with_contract ( wasm_blob, configure_env) . insert_diagnostics ( ns. diagnostics )
3229}
3330
3431fn build_wasm ( src : & str ) -> ( Vec < u8 > , Namespace ) {
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ fn ttl_basic() {
3838 let addr = runtime. contracts . last ( ) . unwrap ( ) ;
3939
4040 // initial TTL
41- runtime. env . as_contract ( & addr, || {
41+ runtime. env . as_contract ( addr, || {
4242 // There is only one key in the persistent storage
4343 let key = runtime
4444 . env
@@ -52,9 +52,9 @@ fn ttl_basic() {
5252 } ) ;
5353
5454 // Extend persistent entry TTL to 5000 ledgers - now it is 5000.
55- runtime. invoke_contract ( & addr, "extend_ttl" , vec ! [ ] ) ;
55+ runtime. invoke_contract ( addr, "extend_ttl" , vec ! [ ] ) ;
5656
57- runtime. env . as_contract ( & addr, || {
57+ runtime. env . as_contract ( addr, || {
5858 // There is only one key in the persistent storage
5959 let key = runtime
6060 . env
You can’t perform that action at this time.
0 commit comments