Skip to content

Commit c82b54d

Browse files
committed
Refactor via comments
1 parent bd4c76d commit c82b54d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/core-sdk/src/resources/ipAccount.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,7 @@ export class IPAccountClient {
185185
});
186186
return txHash!;
187187
} catch (error) {
188-
handleError(
189-
new Error(
190-
(error as Error).message
191-
.replace("Failed to execute the IP Account transaction: ", "")
192-
.trim(),
193-
),
194-
"Failed to set the IP metadata",
195-
);
188+
handleError(error, "Failed to set the IP metadata");
196189
}
197190
}
198191
}

0 commit comments

Comments
 (0)