0

I see the warning security/no-low-level-calls: Avoid using low-level function 'delegatecall' when I use delegatecall function in my code.

I understand why it's not a good way, but I still need that functionality.

What method can I use instead of delegatecall when I need to keep my context and use storage in the called contract? Is there a safer way for this?

  • If you comment the line before like this: // solium-disable-next-line security/no-low-level-calls then you won't see the warning – Phillip Gibb Nov 16 '18 at 5:52
1

The warning doesn't imply you can not use the functionality of delegatecall, you just need to be careful and to know what you are doing. There is no other method for this. Just be sure that you know perfectly the other contract.

Hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.