diff --git a/resources/js/components/Handbook.vue b/resources/js/components/Handbook.vue index 01ffa37..1808f90 100644 --- a/resources/js/components/Handbook.vue +++ b/resources/js/components/Handbook.vue @@ -187,7 +187,7 @@ const contents = [ 'In mathematical and computer science terms, idempotency is a property of certain operations that can be applied repeated times without changing the initial result of the application.', ' As an example, This is a highly helpful quality since it allows an operation to be repeated or done as many times as required without having any unexpected consequences. The algorithm might need to keep track of whether a non-idempotent operation has previously been carried out or not.', '**Where is this applied in the Enjin Platform API?**', - 'As an example, we can imagine a situation where a game dev runs a function that will transfer 0.1 ENJ or EFI tokens to one of his users if he does not have an idempotent code logic implemented on the API, in case the platform returns an error but the tokens still got transferred, he would not be able to actually know if this operation worked as expected or not, and he would not be able to retry that specific transaction without risking sending another 0.1 ENJ or EFI tokens to one of his users. By implementing an idempotent code key in the Enjin Platform API, we solve this issue by returning an idempotency key after every transaction, where in case he tries to run the transaction with the same idempotency key, the platform will actually check the result of the transaction that was performed using that key and prevent it from getting executed.', + 'As an example, we can imagine a situation where a game dev runs a function that will transfer 0.1 ENJ tokens to one of his users if he does not have an idempotent code logic implemented on the API, in case the platform returns an error but the tokens still got transferred, he would not be able to actually know if this operation worked as expected or not, and he would not be able to retry that specific transaction without risking sending another 0.1 ENJ tokens to one of his users. By implementing an idempotent code key in the Enjin Platform API, we solve this issue by returning an idempotency key after every transaction, where in case he tries to run the transaction with the same idempotency key, the platform will actually check the result of the transaction that was performed using that key and prevent it from getting executed.', ], }, { diff --git a/resources/js/components/fueltank/DispatchRuleForm.vue b/resources/js/components/fueltank/DispatchRuleForm.vue index 2ed1802..ae7fc39 100644 --- a/resources/js/components/fueltank/DispatchRuleForm.vue +++ b/resources/js/components/fueltank/DispatchRuleForm.vue @@ -105,6 +105,7 @@ name="userFuelAmount" placeholder="Amount" type="number" + :prefix="currencySymbol" /> formRef.value.getMeta().valid); +const currencySymbol = computed(() => currencySymbolByNetwork(useAppStore().config.network)); const validation = yup.object({ whitelistedCallers: yup.array().of( @@ -232,11 +236,11 @@ const hasChanged = computed(() => whitelistedCollections: whitelistedCollections.value.map((item: any) => item.collection), maxFuelBurnPerTransaction: maxFuelBurnPerTransaction.value, userFuelBudget: { - amount: userFuelAmount.value, + amount: formatPriceToENJ(userFuelAmount.value), resetPeriod: userFuelresetPeriod.value, }, tankFuelBudget: { - amount: tankFuelAmount.value, + amount: formatPriceToENJ(tankFuelAmount.value), resetPeriod: tankFuelresetPeriod.value, }, }) diff --git a/resources/js/components/slideovers/fueltank/AccountsFuelTankSlideover.vue b/resources/js/components/slideovers/fueltank/AccountsFuelTankSlideover.vue index 7a859ad..85aa7b3 100644 --- a/resources/js/components/slideovers/fueltank/AccountsFuelTankSlideover.vue +++ b/resources/js/components/slideovers/fueltank/AccountsFuelTankSlideover.vue @@ -72,6 +72,12 @@ + + @@ -170,7 +179,8 @@ const actions = ref([ const isPaginationLoading = ref(false); const accounts: Ref<{ items: { - owner: string; + id: string; + account: string; }[]; cursor: string | null; }> = ref({ @@ -289,6 +299,7 @@ const getAccounts = async () => { const res = await FuelTankApi.getAccounts(addressToPublicKey(tankId.value) ?? ''); accounts.value = DTOFactory.forAccounts(res); } catch (e) { + console.log(e); // Do nothing } finally { isLoading.value = false; diff --git a/resources/js/factory/account.ts b/resources/js/factory/account.ts index 5768438..4128d30 100644 --- a/resources/js/factory/account.ts +++ b/resources/js/factory/account.ts @@ -4,7 +4,6 @@ export class DTOAccountFactory { public static buildAccount(account: any): any { return { ...account, - owner: publicKeyToAddress(account.owner.account.publicKey), account: publicKeyToAddress(account.account.publicKey), }; }
+ ID + - {{ account.owner }} + {{ account.id }} + + {{ account.account }}