Skip to content

Commit

Permalink
penumbra: rename penumbra_sdk_address
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed Dec 25, 2024
1 parent c505c24 commit 361a4de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions crates/bin/pindexer/src/ibc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl TryFrom<&ContextualizedEvent> for Event {
/// The database's view of a transfer.
#[derive(Debug)]
struct DatabaseTransfer {
penumbra_sdk_addr: Address,
penumbra_addr: Address,
foreign_addr: String,
negate: bool,
value: Value,
Expand All @@ -124,7 +124,7 @@ impl Event {
sender,
value,
} => DatabaseTransfer {
penumbra_sdk_addr: receiver,
penumbra_addr: receiver,
foreign_addr: sender,
negate: false,
value,
Expand All @@ -135,7 +135,7 @@ impl Event {
receiver,
value,
} => DatabaseTransfer {
penumbra_sdk_addr: sender,
penumbra_addr: sender,
foreign_addr: receiver,
negate: true,
value,
Expand All @@ -147,7 +147,7 @@ impl Event {
value,
reason,
} => DatabaseTransfer {
penumbra_sdk_addr: sender,
penumbra_addr: sender,
foreign_addr: receiver,
negate: false,
value,
Expand Down Expand Up @@ -176,7 +176,7 @@ async fn create_transfer(
sqlx::query("INSERT INTO ibc_transfer VALUES (DEFAULT, $7, $1, $6::NUMERIC(39, 0) * $2::NUMERIC(39, 0), $3, $4, $5)")
.bind(transfer.value.asset_id.to_bytes())
.bind(transfer.value.amount.to_string())
.bind(transfer.penumbra_sdk_addr.to_vec())
.bind(transfer.penumbra_addr.to_vec())
.bind(transfer.foreign_addr)
.bind(transfer.kind)
.bind(if transfer.negate { -1i32 } else { 1i32 })
Expand Down
4 changes: 2 additions & 2 deletions crates/bin/pmonitor/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ impl PmonitorTestRunner {
let mut results = Vec::<Address>::new();
for i in 0..self.num_wallets - 1 {
let pcli_home = self.wallets_dir()?.join(format!("wallet-{}", i));
let penumbra_sdk_address = pcli_view_address(&pcli_home)?;
results.push(penumbra_sdk_address);
let penumbra_address = pcli_view_address(&pcli_home)?;
results.push(penumbra_address);
}
Ok(results)
}
Expand Down

0 comments on commit 361a4de

Please sign in to comment.