Skip to content

Commit

Permalink
Bugfix to allow subscriber url
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Feb 16, 2024
1 parent b0c19fa commit 741ff1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,13 @@ pub fn handler<'info>(
ctx: Context<'_, '_, '_, 'info, TempStandardizeEntity<'info>>,
args: TempStandardizeEntityArgs,
) -> Result<()> {
let mut sub_uri = ENTITY_METADATA_URL;
if args.current_metadata.symbol.to_lowercase() == "subscriber" {
sub_uri = "https://sol.hellohelium.com/api/metadata"
}
let uri = format!(
"{}/v2/{}/{}",
ENTITY_METADATA_URL,
sub_uri,
args.current_metadata.symbol.to_lowercase(),
ctx.accounts.key_to_asset.key()
);
Expand Down
4 changes: 2 additions & 2 deletions utils/standardize-hotspot-metadata/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ edition = "2021"
overflow-checks = true

[dependencies]
solana-client = "1.17.22"
solana-client = "1.16.13"
serde_json = "1.0"
reqwest = { version = "0.11.13", features = ["blocking", "json"] }
serde = "1.0.152"
solana-sdk = "1.17.22"
solana-sdk = "1.16.13"
bincode = "1.3.3"
warp = "0.3.3"
futures = "0.3.25"
Expand Down

0 comments on commit 741ff1f

Please sign in to comment.