Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
josediegorobles committed Dec 11, 2023
1 parent 9273142 commit 3a8eae5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tests/rgb/web/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async fn allow_issue_and_list_contracts() {
let supply = 5;
let issue_utxo = next_utxo;
let issue_seal = format!("tapret1st:{issue_utxo}");
let issue_req = IssueRequest {
let issue_req = IssuePreRequest {

Check failure on line 96 in tests/rgb/web/contracts.rs

View workflow job for this annotation

GitHub Actions / lint-wasm

error[E0422]: cannot find struct, variant or union type `IssuePreRequest` in this scope --> tests/rgb/web/contracts.rs:96:21 | 96 | let issue_req = IssuePreRequest { | ^^^^^^^^^^^^^^^ | ::: /home/runner/work/bitmask-core/bitmask-core/src/structs.rs:154:1 | 154 | pub struct IssueRequest { | ----------------------- similarly named struct `IssueRequest` defined here | help: a struct with a similar name exists | 96 | let issue_req = IssueRequest { | ~~~~~~~~~~~~ help: consider importing this struct | 5 + use bitmask_core::structs::IssuePreRequest; |
ticker: "DIBA".to_string(),
name: "DIBA".to_string(),
description: "DIBA".to_string(),
Expand Down
12 changes: 3 additions & 9 deletions tests/rgb/web/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ async fn import_and_get_consig_from_proxy() {
let precision = 2;
let issue_utxo = issuer_next_utxo.utxo.unwrap().outpoint.to_string();
let issue_seal = format!("tapret1st:{issue_utxo}");
let issue_req = IssueRequest {
let issue_req = IssuePreRequest {

Check failure on line 161 in tests/rgb/web/proxy.rs

View workflow job for this annotation

GitHub Actions / lint-wasm

error[E0422]: cannot find struct, variant or union type `IssuePreRequest` in this scope --> tests/rgb/web/proxy.rs:161:21 | 161 | let issue_req = IssuePreRequest { | ^^^^^^^^^^^^^^^ | ::: /home/runner/work/bitmask-core/bitmask-core/src/structs.rs:154:1 | 154 | pub struct IssueRequest { | ----------------------- similarly named struct `IssueRequest` defined here | help: a struct with a similar name exists | 161 | let issue_req = IssueRequest { | ~~~~~~~~~~~~ help: consider importing this struct | 5 + use bitmask_core::structs::IssuePreRequest; |
ticker: "DIBA".to_string(),
name: "DIBA".to_string(),
description: "DIBA".to_string(),
Expand Down Expand Up @@ -364,25 +364,19 @@ async fn create_uda_with_medias() {
attachments: vec![],
};

let import_media_req = serde_wasm_bindgen::to_value(&import_media_req).expect("");
let import_media_resp = resolve(import_uda_data(import_media_req)).await;
let issuer_resp: MediaResponse = json_parse(&import_media_resp);

let media_req = IssueMediaRequest::from(issuer_resp);

let supply = 1;
let precision = 0;
let issue_utxo = issuer_next_utxo.utxo.unwrap().outpoint.to_string();
let issue_seal = format!("tapret1st:{issue_utxo}");
let issue_req = IssueRequest {
let issue_req = IssuePreRequest {

Check failure on line 371 in tests/rgb/web/proxy.rs

View workflow job for this annotation

GitHub Actions / lint-wasm

error[E0422]: cannot find struct, variant or union type `IssuePreRequest` in this scope --> tests/rgb/web/proxy.rs:371:21 | 371 | let issue_req = IssuePreRequest { | ^^^^^^^^^^^^^^^ | ::: /home/runner/work/bitmask-core/bitmask-core/src/structs.rs:154:1 | 154 | pub struct IssueRequest { | ----------------------- similarly named struct `IssueRequest` defined here | help: a struct with a similar name exists | 371 | let issue_req = IssueRequest { | ~~~~~~~~~~~~ help: consider importing this struct | 5 + use bitmask_core::structs::IssuePreRequest; |
ticker: "DIBA".to_string(),
name: "DIBA".to_string(),
description: "DIBA".to_string(),
precision,
supply,
seal: issue_seal.to_owned(),
iface: iface.to_string(),
meta: Some(media_req),
meta: Some(import_media_req),
};

let issue_req = serde_wasm_bindgen::to_value(&issue_req).expect("");
Expand Down
2 changes: 1 addition & 1 deletion tests/rgb/web/swaps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async fn create_transfer_swap_flow() {
let precision = 2;
let issue_utxo = issuer_next_utxo.utxo.unwrap().outpoint.to_string();
let issue_seal = format!("tapret1st:{issue_utxo}");
let issue_req = IssueRequest {
let issue_req = IssuePreRequest {

Check failure on line 183 in tests/rgb/web/swaps.rs

View workflow job for this annotation

GitHub Actions / lint-wasm

error[E0422]: cannot find struct, variant or union type `IssuePreRequest` in this scope --> tests/rgb/web/swaps.rs:183:21 | 183 | let issue_req = IssuePreRequest { | ^^^^^^^^^^^^^^^ | ::: /home/runner/work/bitmask-core/bitmask-core/src/structs.rs:154:1 | 154 | pub struct IssueRequest { | ----------------------- similarly named struct `IssueRequest` defined here | help: a struct with a similar name exists | 183 | let issue_req = IssueRequest { | ~~~~~~~~~~~~ help: consider importing this struct | 5 + use bitmask_core::structs::IssuePreRequest; |
ticker: "DIBA".to_string(),
name: "DIBA".to_string(),
description: "DIBA".to_string(),
Expand Down
4 changes: 2 additions & 2 deletions tests/rgb/web/transfers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ async fn create_transfer_with_fee_value() {
let precision = 2;
let issue_utxo = issuer_next_utxo.utxo.unwrap().outpoint.to_string();
let issue_seal = format!("tapret1st:{issue_utxo}");
let issue_req = IssueRequest {
let issue_req = IssuePreRequest {

Check failure on line 158 in tests/rgb/web/transfers.rs

View workflow job for this annotation

GitHub Actions / lint-wasm

error[E0422]: cannot find struct, variant or union type `IssuePreRequest` in this scope --> tests/rgb/web/transfers.rs:158:21 | 158 | let issue_req = IssuePreRequest { | ^^^^^^^^^^^^^^^ | ::: /home/runner/work/bitmask-core/bitmask-core/src/structs.rs:154:1 | 154 | pub struct IssueRequest { | ----------------------- similarly named struct `IssueRequest` defined here | help: a struct with a similar name exists | 158 | let issue_req = IssueRequest { | ~~~~~~~~~~~~ help: consider importing this struct | 5 + use bitmask_core::structs::IssuePreRequest; |
ticker: "DIBA".to_string(),
name: "DIBA".to_string(),
description: "DIBA".to_string(),
Expand Down Expand Up @@ -460,7 +460,7 @@ async fn create_transfer_with_fee_rate() {
let precision = 2;
let issue_utxo = issuer_next_utxo.utxo.unwrap().outpoint.to_string();
let issue_seal = format!("tapret1st:{issue_utxo}");
let issue_req = IssueRequest {
let issue_req = IssuePreRequest {
ticker: "DIBA".to_string(),
name: "DIBA".to_string(),
description: "DIBA".to_string(),
Expand Down

0 comments on commit 3a8eae5

Please sign in to comment.