From d347d5973966c6738808b9521e26b2499c7ee093 Mon Sep 17 00:00:00 2001 From: Vivek Jain Date: Thu, 11 Jul 2024 17:27:00 +0530 Subject: [PATCH] Fix naming convention --- packages/evm/evmtest/wiki_how_tos/how_tos_test.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/evm/evmtest/wiki_how_tos/how_tos_test.go b/packages/evm/evmtest/wiki_how_tos/how_tos_test.go index 0517089929..5a94249a13 100644 --- a/packages/evm/evmtest/wiki_how_tos/how_tos_test.go +++ b/packages/evm/evmtest/wiki_how_tos/how_tos_test.go @@ -133,18 +133,19 @@ func TestTakeAllowance(t *testing.T) { allowanceInstance := env.DeployContract(privateKey, AllowanceContractABI, AllowanceContractBytecode) // creating nft ID - NFT_ID_Buffer := bytes.NewBufferString("0x0000000000000000000000000000000000000000000000000000000000000001") - NFT_ID := [32]byte(NFT_ID_Buffer.Bytes()) + NftIdBuffer := bytes.NewBufferString("0x0000000000000000000000000000000000000000000000000000000000000001") + nftId := [32]byte(NftIdBuffer.Bytes()) // allowing funds - result, err := allowanceInstance.CallFn(nil, "allow", deployer, NFT_ID) + result, err := allowanceInstance.CallFn(nil, "allow", deployer, nftId) assert.Nil(t, err) - t.Log("****************************", result, err) + t.Log("Allow :", result, err) takeAllowanceInstance := env.DeployContract(privateKey, TakeAllowanceContractABI, TakeAllowanceContractBytecode) // taking allowed funds - takeAllowanceInstance.CallFn(nil, "takeAllowedFunds", deployer, NFT_ID) + takeAllowanceInstance.CallFn(nil, "takeAllowedFunds", deployer, nftId) assert.Nil(t, err) + t.Log("Take Allowed funds :", result, err) }