From 65073403b7b8162f017816ca5139963627bda1cd Mon Sep 17 00:00:00 2001 From: Erick Chandra Date: Tue, 21 Jan 2025 19:43:28 +0800 Subject: [PATCH 1/2] logger --- hscs/script-hscs-smart-contract.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hscs/script-hscs-smart-contract.js b/hscs/script-hscs-smart-contract.js index 1fe552d..52a3217 100755 --- a/hscs/script-hscs-smart-contract.js +++ b/hscs/script-hscs-smart-contract.js @@ -70,7 +70,7 @@ async function scriptHscsSmartContract() { const myContract = await myContractFactory.deploy(); const deployTx = myContract.deployTransaction; const deploymentTxReceipt = await deployTx.wait(); - console.log( + logger.log( 'Smart contract deployment transaction fee', calculateTransactionFeeFromViem(deploymentTxReceipt), ); From a425d7396f449f2743af3d5b36d330d50b6ad5fc Mon Sep 17 00:00:00 2001 From: Erick Chandra Date: Tue, 21 Jan 2025 19:47:04 +0800 Subject: [PATCH 2/2] update readme due to wrong folder name --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 0e233f4..d950b5d 100644 --- a/README.md +++ b/README.md @@ -174,9 +174,9 @@ Video: Steps: -1. In the code editor, Open the file `hts-ft/script-hts-ft.js`. +1. In the code editor, Open the file `hts/script-hts-ft.js`. 1. In the terminal, run these commands: - - `cd hts-ft` + - `cd hts` - `./script-hts-ft.js` 1. View the summary statistics (optional) - The "time to first task completion" displays how long it took @@ -218,9 +218,9 @@ Video: Steps: -1. In the code editor, Open the file `hcs-topic/script-hcs-topic.js`. +1. In the code editor, Open the file `hcs/script-hcs-topic.js`. 1. In the terminal, run these commands: - - `cd hcs-topic` + - `cd hcs` - `./script-hcs-topic.js` 1. View the summary statistics (optional) - The "time to first task completion" displays how long it took @@ -263,10 +263,10 @@ Video: Steps: 1. In the code editor, open the files - `hscs-smart-contract/script-hscs-smart-contract.js` and - `hscs-smart-contract/my_contract.sol`. + `hscs/script-hscs-smart-contract.js` and + `hscs/my_contract.sol`. 1. In the terminal, run these commands: - - `cd hscs-smart-contract` + - `cd hscs` - `npm install` - `npx solc@0.8.17 --abi --bin my_contract.sol` - `./script-hscs-smart-contract.js`