File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed
Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -149,32 +149,36 @@ function App() {
149149 async function invoke ( ) {
150150 console . log (
151151 await dapi ?. invoke ( {
152- scriptHash : "0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5 " ,
153- operation : "balanceOf " ,
152+ scriptHash : "0x41a2d4872ed920aca01f1efc61fde44eaa95297d " ,
153+ operation : "swapNeo " ,
154154 args : [
155155 {
156- type : "Hash160" ,
157- value : "0x96d5942028891de8e5d866f504b36ff5ae13ab63" ,
156+ type : "Address" ,
157+ value : "NUzy2Ns2D35BTdFVqDhUCRoZb1cmix2cXS" ,
158+ } ,
159+ {
160+ type : "Integer" ,
161+ value : "1" ,
162+ } ,
163+ {
164+ type : "Integer" ,
165+ value : "0" ,
158166 } ,
159167 ] ,
160168 extraSystemFee : "111000" ,
161169 extraNetworkFee : "222200" ,
162170 broadcastOverride : false ,
163171 signers : [
164172 {
165- account : "0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5 " ,
173+ account : "0x41a2d4872ed920aca01f1efc61fde44eaa95297d " ,
166174 scopes : "Global" ,
167175 } ,
168176 {
169177 account : "0x96d5942028891de8e5d866f504b36ff5ae13ab63" ,
170- scopes : "CalledByEntry" ,
171- // allowedContracts: [
172- // "2bcc9c9ad6626396f507f088c5ae06ebf6fa5efa",
173- // "ef4073a0f2b305a38ec4050e4d3d28bc40ea63f5",
174- // ],
178+ scopes : "Global" ,
175179 } ,
176180 ] ,
177- network : "TestNet " ,
181+ network : "N3T4 " ,
178182 } )
179183 ) ;
180184 }
You can’t perform that action at this time.
0 commit comments