deps: update base64 requirement from 0.20.0 to 0.21.0

Pull-Request: #3315.
This commit is contained in:
dependabot[bot]
2023-02-24 00:36:59 +00:00
committed by GitHub
parent 19a554965f
commit 6383e1e8bd
8 changed files with 14 additions and 17 deletions

View File

@@ -331,6 +331,7 @@ impl TryFrom<keys_proto::PublicKey> for PublicKey {
#[cfg(test)]
mod tests {
use super::*;
use base64::prelude::*;
use std::str::FromStr;
#[test]
@@ -353,7 +354,7 @@ mod tests {
let expected_peer_id =
PeerId::from_str("12D3KooWEChVMMMzV8acJ53mJHrw1pQ27UAGkCxWXLJutbeUMvVu").unwrap();
let encoded = base64::decode(base_64_encoded).unwrap();
let encoded = BASE64_STANDARD.decode(base_64_encoded).unwrap();
let keypair = Keypair::from_protobuf_encoding(&encoded).unwrap();
let peer_id = keypair.public().to_peer_id();