Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
allowances function tested
Browse files Browse the repository at this point in the history
  • Loading branch information
Hammad-Mubeen committed Jan 18, 2022
1 parent 7d9348d commit b1bf740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion JsClients/ERC20/src/erc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class ERC20Client {
const maybeValue = result.value().unwrap();
return maybeValue.value().toString();
} catch (error) {
return error;
return "0";
}

}
Expand Down
2 changes: 1 addition & 1 deletion JsClients/ERC20/test/installed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,4 +257,4 @@ export const allowance = async (contractHash:string, ownerkey:string, spenderkey

};

allowance("b761da7d5ef67f8825c30c40df8b72feca4724eb666dba556b0e3f67778143e0","8b217a09296d5ce360847a7d20f623476157c5f022333c4e988a464035cadd80","8a74e1ae230936013f3b544182b8011435f4a457d9444fa879ab483fdf829dc8");
//allowance("b761da7d5ef67f8825c30c40df8b72feca4724eb666dba556b0e3f67778143e0","8b217a09296d5ce360847a7d20f623476157c5f022333c4e988a464035cadd80","8a74e1ae230936013f3b544182b8011435f4a457d9444fa879ab483fdf829dc8");

0 comments on commit b1bf740

Please sign in to comment.