it be 
                  
                  
                  
                  
                  
                  approve(address(this),amount);
                  
                  
                  transferFrom(mig.sender,address(this),amount); 
                  
                  
                  
                  
                  
                  ?
                  
                  
                
U can't increase allowance in this way... U need to approve with some other way like ui.. Since approve function increases allowance of the msg.sender.. so if u call it from ur contract then msg.sender is ur contract.. So it will be like increasing ur contract allowance of ur contract token balance..
Обсуждают сегодня