Skip to content

Commit

Permalink
handle method not supported error
Browse files Browse the repository at this point in the history
  • Loading branch information
m-aboelenein committed Jul 4, 2024
1 parent 427a08b commit 42a0e97
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/adapters/satsConnectAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ abstract class SatsConnectAdapter {
if (isMintSupported) {
const response = await this.requestInternal('runes_mint', params);
if (response) {
return response;
if (response.status === 'success') {
return response;
}
if (
response.status === 'error' &&
response.error.code !== RpcErrorCode.METHOD_NOT_SUPPORTED
) {
return response;
}
}
}
}
Expand Down

0 comments on commit 42a0e97

Please sign in to comment.