diff --git a/src/utils/ao.ts b/src/utils/ao.ts
index 3e1472f5..0c2d094b 100644
--- a/src/utils/ao.ts
+++ b/src/utils/ao.ts
@@ -133,7 +133,7 @@ export async function evolveANT({
export function createAoSigner(signer: ContractSigner): AoSigner {
if (!('publicKey' in signer)) {
- return createDataItemSigner(signer) as any;
+ return createDataItemSigner(signer) as AoSigner;
}
const aoSigner = async ({ data, tags, target, anchor }) => {
diff --git a/src/utils/json.ts b/src/utils/json.ts
index 0afbe79c..47d45d93 100644
--- a/src/utils/json.ts
+++ b/src/utils/json.ts
@@ -14,6 +14,8 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
+
+// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function safeDecode(data: any): R {
try {
return JSON.parse(data);
diff --git a/src/utils/processes.ts b/src/utils/processes.ts
index e792f679..3df75e61 100644
--- a/src/utils/processes.ts
+++ b/src/utils/processes.ts
@@ -118,7 +118,7 @@ export class ArNSEventEmitter extends EventEmitter {
.then((records: Record) => {
Object.entries(records).forEach(([name, arnsRecord]) => {
if (antIds.includes(arnsRecord.processId)) {
- if (!uniqueContractProcessIds[arnsRecord.processId]) {
+ if (uniqueContractProcessIds[arnsRecord.processId] == undefined) {
uniqueContractProcessIds[arnsRecord.processId] = {
state: undefined,
names: {},
@@ -192,7 +192,7 @@ export const fetchAllArNSRecords = async ({
do {
const pageResult = await contract
.getArNSRecords({ cursor, limit: pageSize })
- .catch((e: any) => {
+ .catch((e: Error) => {
logger?.error(`Error getting ArNS records`, {
message: e?.message,
stack: e?.stack,