File tree 2 files changed +7
-7
lines changed
tests/integration/expected/rust_sdk_account_test 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -83,18 +83,18 @@ impl formatter::PrettyPrint for ComponentImport {
83
83
ComponentImport :: MidenAbiImport ( import) => import. function_ty . to_string ( ) ,
84
84
} ;
85
85
let name = match self {
86
- ComponentImport :: CanonAbiImport ( import) => import. interface_function . to_string ( ) ,
87
- ComponentImport :: MidenAbiImport ( _import) => "()" . to_string ( ) ,
86
+ ComponentImport :: CanonAbiImport ( import) => {
87
+ format ! ( " {} " , import. interface_function)
88
+ }
89
+ ComponentImport :: MidenAbiImport ( _import) => "" . to_string ( ) ,
88
90
} ;
89
91
let import = match self {
90
92
ComponentImport :: CanonAbiImport ( _) => const_text ( "import (abi canon)" ) ,
91
93
ComponentImport :: MidenAbiImport ( _) => const_text ( "import (abi miden)" ) ,
92
94
} ;
93
95
const_text ( "(" )
94
96
+ import
95
- + const_text ( " " )
96
97
+ text ( name)
97
- + const_text ( " " )
98
98
+ const_text ( "(" )
99
99
+ const_text ( "digest" )
100
100
+ const_text ( " " )
Original file line number Diff line number Diff line change 1
1
(component
2
2
;; Component Imports
3
- (lower (import (abi miden) () (digest 0x0000000000000000000000000000000000000000000000000000000000000000) (type (func (param i32) (param i32) (param i32) (param i32) (result i32 i32 i32 i32)))) (#miden:tx_kernel/account #add_asset)
4
- (lower (import (abi miden) () (digest 0x0000000000000000000000000000000000000000000000000000000000000000) (type (func (result i32)))) (#miden:tx_kernel/account #get_id)
5
- (lower (import (abi miden) () (digest 0x0000000000000000000000000000000000000000000000000000000000000000) (type (func (param i32) (result i32 i32)))) (#miden:tx_kernel/note #get_inputs)
3
+ (lower (import (abi miden)(digest 0x0000000000000000000000000000000000000000000000000000000000000000) (type (func (param i32) (param i32) (param i32) (param i32) (result i32 i32 i32 i32)))) (#miden:tx_kernel/account #add_asset)
4
+ (lower (import (abi miden)(digest 0x0000000000000000000000000000000000000000000000000000000000000000) (type (func (result i32)))) (#miden:tx_kernel/account #get_id)
5
+ (lower (import (abi miden)(digest 0x0000000000000000000000000000000000000000000000000000000000000000) (type (func (param i32) (result i32 i32)))) (#miden:tx_kernel/note #get_inputs)
6
6
7
7
;; Modules
8
8
(module #miden_sdk_account_test.wasm
You can’t perform that action at this time.
0 commit comments