Skip to content

Commit

Permalink
fix(logo)
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Dec 18, 2024
1 parent bc22d07 commit 0c76ad5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/blocs/upload/upload_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class UploadCubit extends Cubit<UploadState> {
name: manifestModels[i].undername!.name,
domain: manifestModels[i].antRecord!.domain,
record: ARNSRecord(
transactionId: manifestFile.dataTxId,
transactionId: manifestFile.dataTxId,
ttlSeconds: 3600,
),
);
Expand Down
14 changes: 8 additions & 6 deletions packages/ario_sdk/web/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121690,11 +121690,11 @@ async function $6efb768676258e07$var$setAnt(JWKString, processId, txId, undernam
return id;
}
async function $6efb768676258e07$var$setARNS(JWKString, txId, domain, undername, useArConnect) {
const record1 = await $6efb768676258e07$var$io.getArNSRecord({
const record = await $6efb768676258e07$var$io.getArNSRecord({
name: domain
});
console.log(record1);
const processId = record1.processId;
console.log(record);
const processId = record.processId;
const setRecordResult = await $6efb768676258e07$var$setAnt(JWKString, processId, txId, undername, useArConnect);
return JSON.stringify(setRecordResult);
}
Expand Down Expand Up @@ -121750,17 +121750,19 @@ async function $6efb768676258e07$var$getPrimaryNameAndLogo(address, getLogo = tr
const primaryName = await $6efb768676258e07$var$io.getPrimaryName({
address: address
});
var info;
var record;
if (getLogo) {
const record1 = await $6efb768676258e07$var$io.getArNSRecord({
record = await $6efb768676258e07$var$io.getArNSRecord({
name: primaryName.name
}).catch((e)=>{
console.error('Error fetching ARNS record:', e);
return null;
});
const ant = (0, $5E3On.ANT).init({
processId: record1.processId
processId: record.processId
});
const info1 = !record1 ? null : await ant.getInfo().catch((e)=>{
info = !record ? null : await ant.getInfo().catch((e)=>{
console.error('Error fetching ANT info:', e);
return null;
});
Expand Down
2 changes: 1 addition & 1 deletion packages/ario_sdk/web/dist/index.js.map

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions packages/ario_sdk/web/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,15 @@ async function getProcesses(address) {

async function getPrimaryNameAndLogo(address, getLogo = true) {
const primaryName = await io.getPrimaryName({ address: address });
var info;
var record;
if (getLogo) {
const record = await io.getArNSRecord({ name: primaryName.name }).catch((e) => {
record = await io.getArNSRecord({ name: primaryName.name }).catch((e) => {
console.error('Error fetching ARNS record:', e);
return null;
});
const ant = ANT.init({processId: record.processId});
const info = !record ? null : await ant.getInfo().catch((e) => {
info = !record ? null : await ant.getInfo().catch((e) => {
console.error('Error fetching ANT info:', e);
return null;
});
Expand Down
2 changes: 1 addition & 1 deletion web/js/ario_sdk.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0c76ad5

Please sign in to comment.