Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Nov 22, 2023
1 parent 1d5eafd commit dc66c40
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/gateway/resolution.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::sync::Arc;

use ethers::{abi::Token, providers::namehash, utils::keccak256};
use ethers::{abi::Token, providers::namehash, utils::keccak256, types::H160};
use thiserror::Error;
use tracing::info;

Expand Down Expand Up @@ -49,7 +49,9 @@ impl UnresolvedQuery<'_> {

let value = x.get(&chain.to_string()).to_owned().unwrap().clone().unwrap();

vec![Token::String(value)]
let bytes = value.as_bytes().to_vec();

vec![Token::Bytes(bytes)]
}
ResolverFunctionCall::Addr(_bf) => {
let chain = 60;
Expand All @@ -61,7 +63,9 @@ impl UnresolvedQuery<'_> {

let value = x.get(&chain.to_string()).to_owned().unwrap().clone().unwrap();

vec![Token::String(value)]
let address = value.parse().unwrap();

vec![Token::Address(address)]
}
_ => Vec::new(),
};
Expand Down

0 comments on commit dc66c40

Please sign in to comment.