Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[explorer] Render example nft #1695

Merged
merged 6 commits into from
May 2, 2022
Merged

[explorer] Render example nft #1695

merged 6 commits into from
May 2, 2022

Conversation

666lcz
Copy link
Contributor

@666lcz 666lcz commented May 1, 2022

Render the NFT created by the CLI correctly.

wallet create-example-nft --url=https://user-images.githubusercontent.com/76067158/166136286-c60fe70e-b982-4813-932a-0414d0f55cfb.png --description="The greatest chef in the world" --name="Greatest Chef"

CleanShot 2022-05-01 at 11 45 10

wallet create-example-nft 

CleanShot 2022-05-01 at 11 44 16

NOTE:
This PR only aims to make sure the data flow is correct. I will leave the UI layout improvement to @Andrew47 or @Jibz1 in separate PRs

@666lcz 666lcz force-pushed the chris/explorer-nft branch from 5d56784 to 519a15d Compare May 1, 2022 07:28
@666lcz 666lcz force-pushed the chris/sdk-object-fix branch from 4c98a0b to 703022a Compare May 1, 2022 07:28
@666lcz 666lcz requested review from apburnie, Jibz1 and stella3d May 1, 2022 07:33
Base automatically changed from chris/sdk-object-fix to main May 1, 2022 07:36
@666lcz 666lcz force-pushed the chris/explorer-nft branch from 519a15d to c14780b Compare May 1, 2022 07:41
@666lcz 666lcz marked this pull request as ready for review May 1, 2022 07:41
@@ -495,7 +495,7 @@ impl WalletCommands {
&Identifier::new("mint").unwrap(),
&[],
gas,
&gas_budget.unwrap_or(1000),
&gas_budget.unwrap_or(3000),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

increase default budget to accommodate longer urls.

@666lcz 666lcz force-pushed the chris/explorer-nft branch from c14780b to f182a17 Compare May 1, 2022 18:46
@666lcz 666lcz force-pushed the chris/explorer-nft branch from 78772b0 to 46dcb72 Compare May 2, 2022 00:28
@@ -47,7 +47,7 @@ export type GasCostSummary = {

export type ExecutionStatus =
| { Success: { gas_cost: GasCostSummary } }
| { Failure: { gas_cost: GasCostSummary; error: string } };
| { Failure: { gas_cost: GasCostSummary; error: any } };
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jibz1 You will see a console error from the sdk in the main branch in the landing page. This PR will fix that.

@@ -11,7 +11,7 @@ export type AddressOwner = { AddressOwner: AddressBytes };
export type AnyVec = { vec: any[] };
export type JsonBytes = { bytes: number[] };

const useLocal = true;
const useLocal = false;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a yarn command to control this

@666lcz 666lcz enabled auto-merge (squash) May 2, 2022 00:32
@666lcz 666lcz merged commit 63c4674 into main May 2, 2022
@666lcz 666lcz deleted the chris/explorer-nft branch May 2, 2022 00:43
todd-mystenlabs pushed a commit that referenced this pull request May 2, 2022
longbowlu pushed a commit that referenced this pull request May 12, 2022
punwai pushed a commit that referenced this pull request Jul 27, 2022
punwai pushed a commit that referenced this pull request Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants