Skip to content

Commit

Permalink
tweak wallet address name
Browse files Browse the repository at this point in the history
Signed-off-by: Nana Essilfie-Conduah <[email protected]>
  • Loading branch information
Nana-EC committed Dec 13, 2024
1 parent f1e70ee commit a1c7f2e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/system-contracts/hedera-account-service/ihrc-906/IHRC906.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const { Contract } = require('ethers');
const Constants = require('../../../constants');

describe('@IHRC-906 Facade @CryptoAllowance Test Suite', function () {
let walletA, walletB, walletC, walletAIHRC906;
let walletA, walletB, walletC, walletIHRC906Facade;
const amount = 3_000;

before(async () => {
Expand All @@ -33,11 +33,11 @@ describe('@IHRC-906 Facade @CryptoAllowance Test Suite', function () {
const IHRC906Facade = new ethers.Interface(
(await hre.artifacts.readArtifact('IHRC906Facade')).abi
);
walletAIHRC906 = new Contract(walletA.address, IHRC906Facade, walletA);
walletIHRC906Facade = new Contract(walletA.address, IHRC906Facade, walletA);
});

it('should execute hbarApprove() by an EOA to grant an hbar allowance to another EOA', async () => {
const tx = await walletAIHRC906.hbarApprove(
const tx = await walletIHRC906Facade.hbarApprove(
walletB.address,
amount,
Constants.GAS_LIMIT_1_000_000
Expand All @@ -49,15 +49,15 @@ describe('@IHRC-906 Facade @CryptoAllowance Test Suite', function () {

// @notice: skipping until mirror-node fully enables HIP906
xit('should execute hbarAllowance() by an EOA to retrieve allowance granted to a spender', async () => {
const approveTx = await walletAIHRC906.hbarApprove(
const approveTx = await walletIHRC906Facade.hbarApprove(
walletC.address,
amount,
Constants.GAS_LIMIT_1_000_000
);
await approveTx.wait();

// @notice: staticCall() method gets the return values instead of transaction information
const result = await walletAIHRC906.hbarAllowance.staticCall(
const result = await walletIHRC906Facade.hbarAllowance.staticCall(
walletC.address,
Constants.GAS_LIMIT_1_000_000
);
Expand Down

0 comments on commit a1c7f2e

Please sign in to comment.