File tree Expand file tree Collapse file tree 5 files changed +4
-7
lines changed
Expand file tree Collapse file tree 5 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 7676 profile : minimal
7777 toolchain : ${{ matrix.toolchain }}
7878 default : true
79- - uses : Swatinem/rust-cache@v1
79+ - uses : Swatinem/rust-cache@v2
8080 - name : Add wasm32 target
8181 run : rustup target add wasm32-unknown-unknown
8282 - name : Check with stable features
Original file line number Diff line number Diff line change @@ -272,7 +272,6 @@ impl Transaction {
272272 self . transact_raw ( )
273273 . await
274274 . map ( ExecutionFinalResult :: from_view)
275- . map_err ( crate :: error:: Error :: from)
276275 }
277276
278277 /// Send the transaction to the network to be processed. This will be done asynchronously
@@ -369,8 +368,7 @@ impl CallTransaction {
369368 self . function . deposit ,
370369 )
371370 . await
372- . map ( ExecutionFinalResult :: from_view)
373- . map_err ( crate :: error:: Error :: from) ?;
371+ . map ( ExecutionFinalResult :: from_view) ?;
374372
375373 for callback in self . worker . tx_callbacks . iter ( ) {
376374 callback ( txn. total_gas_burnt ) ?;
Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ impl ProcessQuery for ViewState {
300300 block_reference,
301301 request : QueryRequest :: ViewState {
302302 account_id : self . account_id ,
303- prefix : StoreKey :: from ( self . prefix . map ( Vec :: from ) . unwrap_or_default ( ) ) ,
303+ prefix : StoreKey :: from ( self . prefix . unwrap_or_default ( ) ) ,
304304 include_proof : false ,
305305 } ,
306306 } )
Original file line number Diff line number Diff line change @@ -176,7 +176,6 @@ where
176176 . transfer_near ( signer, receiver_id, amount_yocto)
177177 . await
178178 . map ( ExecutionFinalResult :: from_view)
179- . map_err ( crate :: error:: Error :: from)
180179 }
181180
182181 /// Deletes an account from the network. The beneficiary will receive the balance
@@ -191,7 +190,6 @@ where
191190 . delete_account ( signer, account_id, beneficiary_id)
192191 . await
193192 . map ( ExecutionFinalResult :: from_view)
194- . map_err ( crate :: error:: Error :: from)
195193 }
196194
197195 /// Returns the status of the network.
Original file line number Diff line number Diff line change 1+ #![ allow( clippy:: literal_string_with_formatting_args) ]
12use near_workspaces:: types:: NearToken ;
23use near_workspaces:: { network:: Sandbox , Contract , Worker } ;
34
You can’t perform that action at this time.
0 commit comments