Commit 3f86474 1 parent f6d218f commit 3f86474 Copy full SHA for 3f86474
File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,6 @@ async fn build_upload_remove() {
321
321
. output ( )
322
322
. expect ( "failed to execute process" ) ;
323
323
let stderr = str:: from_utf8 ( & output. stderr ) . unwrap ( ) ;
324
- let stdout = str:: from_utf8 ( & output. stdout ) . unwrap ( ) ;
325
324
assert ! ( output. status. success( ) , "remove failed: {stderr}" ) ;
326
325
327
326
// prevent the node_process from being dropped and killed
@@ -666,12 +665,11 @@ async fn api_build_upload_remove() {
666
665
let _upload_result = upload_result. unwrap_or_else ( |err| {
667
666
panic ! ( "upload code failed with {:?}" , err) ;
668
667
} ) ;
669
- let code_hash_h256 = upload. code ( ) . code_hash ( ) ; // todo
670
668
671
669
// remove the contract
672
670
let remove: RemoveExec < DefaultConfig , DefaultEnvironment , Keypair > =
673
671
RemoveCommandBuilder :: new ( opts. clone ( ) )
674
- . code_hash ( Some ( H256 :: from_slice ( & code_hash_h256 ) ) )
672
+ . code_hash ( Some ( H256 :: from_slice ( & upload . code ( ) . code_hash ( ) ) ) )
675
673
. done ( )
676
674
. await
677
675
. unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments