Add suggestion to error message

This commit is contained in:
Leonardo Alt
2018-07-17 16:38:36 +01:00
parent 0075f4239a
commit 563e0fc9a7
13 changed files with 27 additions and 30 deletions
@@ -4,4 +4,4 @@ contract C {
}
}
// ----
// TypeError: (52-64): Member "balance" not found or not visible after argument-dependent lookup in contract C
// TypeError: (52-64): Member "balance" not found or not visible after argument-dependent lookup in contract C. Use "address(this).balance" to access this address member.
@@ -4,4 +4,4 @@ contract C {
}
}
// ----
// TypeError: (52-65): Member "transfer" not found or not visible after argument-dependent lookup in contract C
// TypeError: (52-65): Member "transfer" not found or not visible after argument-dependent lookup in contract C. Use "address(this).transfer" to access this address member.
@@ -4,4 +4,4 @@ contract C {
}
}
// ----
// TypeError: (52-61): Member "send" not found or not visible after argument-dependent lookup in contract C
// TypeError: (52-61): Member "send" not found or not visible after argument-dependent lookup in contract C. Use "address(this).send" to access this address member.
@@ -4,4 +4,4 @@ contract C {
}
}
// ----
// TypeError: (52-61): Member "call" not found or not visible after argument-dependent lookup in contract C
// TypeError: (52-61): Member "call" not found or not visible after argument-dependent lookup in contract C. Use "address(this).call" to access this address member.
@@ -4,4 +4,4 @@ contract C {
}
}
// ----
// TypeError: (52-65): Member "callcode" not found or not visible after argument-dependent lookup in contract C
// TypeError: (52-65): Member "callcode" not found or not visible after argument-dependent lookup in contract C. Use "address(this).callcode" to access this address member.
@@ -4,4 +4,4 @@ contract C {
}
}
// ----
// TypeError: (52-69): Member "delegatecall" not found or not visible after argument-dependent lookup in contract C
// TypeError: (52-69): Member "delegatecall" not found or not visible after argument-dependent lookup in contract C. Use "address(this).delegatecall" to access this address member.
@@ -5,4 +5,4 @@ contract C {
}
}
// ----
// TypeError: (65-74): Member "balance" not found or not visible after argument-dependent lookup in contract C
// TypeError: (65-74): Member "balance" not found or not visible after argument-dependent lookup in contract C. Use "address(c).balance" to access this address member.
@@ -5,4 +5,4 @@ contract C {
}
}
// ----
// TypeError: (65-75): Member "transfer" not found or not visible after argument-dependent lookup in contract C
// TypeError: (65-75): Member "transfer" not found or not visible after argument-dependent lookup in contract C. Use "address(c).transfer" to access this address member.
@@ -5,4 +5,4 @@ contract C {
}
}
// ----
// TypeError: (65-71): Member "send" not found or not visible after argument-dependent lookup in contract C
// TypeError: (65-71): Member "send" not found or not visible after argument-dependent lookup in contract C. Use "address(c).send" to access this address member.
@@ -5,4 +5,4 @@ contract C {
}
}
// ----
// TypeError: (65-71): Member "call" not found or not visible after argument-dependent lookup in contract C
// TypeError: (65-71): Member "call" not found or not visible after argument-dependent lookup in contract C. Use "address(c).call" to access this address member.
@@ -5,4 +5,4 @@ contract C {
}
}
// ----
// TypeError: (65-75): Member "callcode" not found or not visible after argument-dependent lookup in contract C
// TypeError: (65-75): Member "callcode" not found or not visible after argument-dependent lookup in contract C. Use "address(c).callcode" to access this address member.
@@ -5,4 +5,4 @@ contract C {
}
}
// ----
// TypeError: (65-79): Member "delegatecall" not found or not visible after argument-dependent lookup in contract C
// TypeError: (65-79): Member "delegatecall" not found or not visible after argument-dependent lookup in contract C. Use "address(c).delegatecall" to access this address member.