Skip to content

Commit

Permalink
kimap_get nit
Browse files Browse the repository at this point in the history
  • Loading branch information
bitful-pannul committed Jul 5, 2024
1 parent 6b032e2 commit f8500a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ impl std::cmp::PartialEq<str> for NodeOrRpcUrl {
}
}

/// KiMap address. (simulation mode flag in process_lib?)
/// KiMap default address
const KIMAP: &str = "0x0165878A594ca255338adfa4d48449f69242Eb8F";

// Sol structures for KiMap requests
Expand All @@ -194,7 +194,7 @@ sol! {
) external view returns (
address tokenBoundAccount,
address tokenOwner,
bytes memory note
bytes data
);
}

Expand Down Expand Up @@ -718,10 +718,10 @@ impl<'a> KiMap<'a> {
let res = getCall::abi_decode_returns(&res_bytes, false)
.map_err(|_| EthError::RpcMalformedResponse)?;

let note_data = if res.note == Bytes::default() {
let note_data = if res.data == Bytes::default() {
None
} else {
Some(res.note)
Some(res.data)
};

Ok((res.tokenBoundAccount, res.tokenOwner, note_data))
Expand Down

0 comments on commit f8500a6

Please sign in to comment.