Skip to content

Commit

Permalink
[api] rename a variable name pk to public_key
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiao Li authored and bors-libra committed Oct 7, 2021
1 parent 6d79ab9 commit 1f49959
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/src/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ mod tests {
);

let user_txn_info = expected_txns.proof.transaction_infos[1].clone();
let (pk, sig) = match txn.authenticator() {
let (public_key, sig) = match txn.authenticator() {
TransactionAuthenticator::Ed25519 {
public_key,
signature,
Expand Down Expand Up @@ -479,7 +479,7 @@ mod tests {
},
"signature": {
"type": "ed25519_signature",
"public_key": format!("0x{}", hex::encode(pk.unvalidated().to_bytes())),
"public_key": format!("0x{}", hex::encode(public_key.unvalidated().to_bytes())),
"signature": format!("0x{}", hex::encode(sig.to_bytes())),
},
}),
Expand Down Expand Up @@ -673,7 +673,7 @@ mod tests {
.post_bcs_txn("/transactions", body)
.await;
let expiration_timestamp = txn.expiration_timestamp_secs();
let (pk, sig) = match txn.authenticator() {
let (public_key, sig) = match txn.authenticator() {
TransactionAuthenticator::Ed25519 {
public_key,
signature,
Expand Down Expand Up @@ -718,7 +718,7 @@ mod tests {
},
"signature": {
"type": "ed25519_signature",
"public_key": format!("0x{}", hex::encode(pk.unvalidated().to_bytes())),
"public_key": format!("0x{}", hex::encode(public_key.unvalidated().to_bytes())),
"signature": format!("0x{}", hex::encode(sig.to_bytes())),
},
}),
Expand Down

0 comments on commit 1f49959

Please sign in to comment.