Disallowing usage of msg.data in receive() function.

This commit is contained in:
Djordje Mijovic
2020-12-08 11:49:20 +01:00
parent 4368a3b3eb
commit acb93f3a97
3 changed files with 17 additions and 0 deletions
@@ -0,0 +1,5 @@
contract C {
receive() external payable { msg.data; }
}
// ----
// TypeError 7139: (46-54): "msg.data" cannot be used inside of "receive" function.