Skip to content

Commit

Permalink
fix: cargo rust linters
Browse files Browse the repository at this point in the history
  • Loading branch information
gostkin committed Jan 29, 2024
1 parent 073d347 commit bc59805
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions indexer/configs/cardano_node.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
source:
type: cardano_net
relay:
- relays-new.cardano-mainnet.iohk.io
- 3001
# - preview-node.world.dev.cardano.org
# - 30002
# - relays-new.cardano-mainnet.iohk.io
# - 3001
- preview-node.world.dev.cardano.org
- 30002
# - preprod-node.world.dev.cardano.org
# - 30000

sink:
type: cardano
db:
type: postgres
database_url: postgresql://carp:1234@localhost:5432/carp_mainnet
network: mainnet # preview / preprod / testnet
database_url: postgresql://postgres:1234@localhost:5432/postgres
network: preview # preview / preprod / testnet

start_block:
2 changes: 1 addition & 1 deletion indexer/tasks/src/multiera/dex/minswap_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl Dex for MinSwapV1 {
let target_asset = build_asset(parse_asset_item(0, 0)?, parse_asset_item(0, 1)?);

// Get transaction output
let output_address_items = vec![
let output_address_items = [
String::from("01"), // mainnet
input_datum["fields"][1]["fields"][0]["fields"][0]["bytes"]
.as_str()
Expand Down
2 changes: 1 addition & 1 deletion indexer/tasks/src/multiera/dex/sundaeswap_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl Dex for SundaeSwapV1 {
}

// Get transaction output
let output_address_items = vec![
let output_address_items = [
String::from("01"), // mainnet
input_datum["fields"][1]["fields"][0]["fields"][0]["fields"][0]["fields"][0]
["bytes"]
Expand Down

0 comments on commit bc59805

Please sign in to comment.