Skip to content

Commit

Permalink
fix: fixed IHRC906
Browse files Browse the repository at this point in the history
Signed-off-by: Logan Nguyen <[email protected]>
  • Loading branch information
quiet-node committed Dec 13, 2024
1 parent a1c7f2e commit b0f2894
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 24 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
Expand All @@ -30,11 +25,6 @@
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
Expand Down
4 changes: 0 additions & 4 deletions contracts/system-contracts/hedera-account-service/IHRC906.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,19 @@ pragma solidity >=0.4.9 <0.9.0;

interface IHRC906 {
/// Returns the amount of hbar that the spender has been authorized to spend on behalf of the owner.
/// @param owner The account that has authorized the spender.
/// @param spender The account that has been authorized by the owner.
/// @return responseCode The response code for the status of the request. SUCCESS is 22.
/// @return amount The amount of hbar that the spender has been authorized to spend on behalf of the owner.
function hbarAllowance(
address owner,
address spender
) external returns (int64 responseCode, int256 amount);

/// Allows spender to withdraw hbars from the owner account multiple times, up to the value amount. If this
/// function is called again it overwrites the current allowance with the new amount.
/// @param owner The owner of the hbars.
/// @param spender the account address authorized to spend.
/// @param amount the amount of tokens authorized to spend.
/// @return responseCode The response code for the status of the request. SUCCESS is 22.
function hbarApprove(
address owner,
address spender,
int256 amount
) external returns (int64 responseCode);
Expand Down

0 comments on commit b0f2894

Please sign in to comment.