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

[TAS-559] ✨ Enable update ISCN #429

Merged
merged 14 commits into from
Dec 29, 2023

Conversation

AuroraHuang22
Copy link
Collaborator

@AuroraHuang22 AuroraHuang22 commented Dec 27, 2023

網頁擷取_29-12-2023_121652_localhost
網頁擷取_29-12-2023_121645_localhost
網頁擷取_29-12-2023_12178_localhost
網頁擷取_29-12-2023_121743_localhost

Copy link

AuroraHuang22 added a commit that referenced this pull request Dec 28, 2023
AuroraHuang22 added a commit that referenced this pull request Dec 28, 2023
gas: UPDATE_ISCN_GAS_FEE.toString(),
amount: [{
denom: DEFAULT_GAS_PRICE[0].denom,
amount: DEFAULT_GAS_PRICE[0].amount.toString(),
Copy link
Member

Choose a reason for hiding this comment

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

need to multiply by GAS_FEE?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated 8d4556c

Copy link
Member

Choose a reason for hiding this comment

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

We can just use signISCN or signISCNTx with iscnId instead of making a new functions

}
}
} else {
redirect({ name: 'index' })
Copy link
Member

Choose a reason for hiding this comment

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

Prefer calling return right after redirect

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

:label="$t('iscn.meta.content.fingerprints')"
class="mb-[12px]"
>
<IscnUploadForm
Copy link
Member

Choose a reason for hiding this comment

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

Should we allow direct editijg of content fingerprint/sameAs without going through upload form?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Currently, we plan to provide only a complete update.
截圖 2023-12-29 上午11 08 35

}

onSubmitUpload({ fileRecords }: { fileRecords: any[] }) {
this.contentFingerprints = []
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if we should keep original content fingerprint if upload form is skipped

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The current UI doesn't offer a way to skip uploading. If users want to abandon the process, they need to refresh the page directly.
截圖 2023-12-29 中午12 12 54

williamchong added a commit that referenced this pull request Dec 29, 2023
@@ -169,7 +169,7 @@ export async function signISCN(
? signingClient.updateISCNRecord(address, iscnId as string, tx, {
memo: memo || 'app.like.co',
fee: {
gas,
gas: new BigNumber(gas).multipliedBy(ISCN_GAS_MULTIPLIER).toFixed(0),
Copy link
Member

Choose a reason for hiding this comment

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

Just increase the default ISCN_GAS_FEE by ISCN_GAS_MULTIPLIER? gas as a input is expected to be override, ISCN_GAS_MULTIPLIER should be applied to the input not inside this function

@williamchong williamchong merged commit 05fad9a into likecoin:main Dec 29, 2023
1 check passed
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