From bc46c470bca75fccf8859ffa59ddbd61e35e64ce Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 21 Oct 2022 17:24:26 +0800 Subject: [PATCH] fix allowed --- contracts/TransitAllowed.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/TransitAllowed.sol b/contracts/TransitAllowed.sol index bd34b98..f86faea 100644 --- a/contracts/TransitAllowed.sol +++ b/contracts/TransitAllowed.sol @@ -59,7 +59,7 @@ contract TransitAllowed is Ownable { function changeCallerAllowed(uint8[] calldata flags, address[][] calldata callers) public onlyExecutor { for (uint index; index < flags.length; index++) { - for (uint indexSecond; indexSecond < flags.length; indexSecond++) { + for (uint indexSecond; indexSecond < callers[index].length; indexSecond++) { _caller_allowed[flags[index]][callers[index][indexSecond]] = !_caller_allowed[flags[index]][callers[index][indexSecond]]; } }