From 7e81e4eb7e4a6dd3cd8ed0818aef6c6bafef8bb4 Mon Sep 17 00:00:00 2001 From: Makram Kamaleddine Date: Tue, 19 Nov 2024 20:23:29 +0400 Subject: [PATCH] rm unused func --- deployment/ccip/test_helpers.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/deployment/ccip/test_helpers.go b/deployment/ccip/test_helpers.go index 8c90ce70be1..c3a598fda7e 100644 --- a/deployment/ccip/test_helpers.go +++ b/deployment/ccip/test_helpers.go @@ -296,22 +296,6 @@ func CCIPSendCalldata( return calldata } -// ApproveTokenCalldata packs the calldata for the ERC20's approve method. -func ApproveTokenCalldata( - t *testing.T, - spender common.Address, - amount *big.Int, -) []byte { - calldata, err := erc20ABI.Methods["approve"].Inputs.Pack( - spender, - amount, - ) - require.NoError(t, err) - - calldata = append(erc20ABI.Methods["approve"].ID, calldata...) - return calldata -} - func TestSendRequest( t *testing.T, e deployment.Environment,