Skip to content

Commit 02b50a8

Browse files
Update send/transfer warning tests
1 parent 779b53a commit 02b50a8

File tree

8 files changed

+12
-0
lines changed

8 files changed

+12
-0
lines changed

test/libsolidity/syntaxTests/nameAndTypeResolution/346_unused_return_value_send.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ contract test {
44
}
55
}
66
// ----
7+
// Warning 9207: (50-77): send will be deprecated in the next breaking version.
78
// Warning 5878: (50-80): Failure condition of 'send' ignored. Consider using 'transfer' instead.

test/libsolidity/syntaxTests/nameAndTypeResolution/405_address_checksum_type_deduction.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ contract C {
44
}
55
}
66
// ----
7+
// Warning 9207: (47-107): transfer will be deprecated in the next breaking version.

test/libsolidity/syntaxTests/nameAndTypeResolution/413_address_methods.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ contract C {
1010
}
1111
}
1212
// ----
13+
// Warning 9207: (227-236): send will be deprecated in the next breaking version.
14+
// Warning 9207: (249-262): transfer will be deprecated in the next breaking version.

test/libsolidity/syntaxTests/nameAndTypeResolution/466_does_not_error_transfer_payable_fallback.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ contract B {
1313
}
1414
}
1515
// ----
16+
// Warning 9207: (227-246): transfer will be deprecated in the next breaking version.

test/libsolidity/syntaxTests/nameAndTypeResolution/535_address_overload_resolution.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ contract D {
1717
}
1818
}
1919
// ----
20+
// Warning 9207: (187-209): transfer will be deprecated in the next breaking version.
2021
// Warning 2018: (17-134): Function state mutability can be restricted to view

test/libsolidity/syntaxTests/viewPureChecker/builtin_functions.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ contract C {
2121
// ====
2222
// bytecodeFormat: legacy
2323
// ----
24+
// Warning 9207: (47-69): transfer will be deprecated in the next breaking version.
25+
// Warning 9207: (90-108): send will be deprecated in the next breaking version.
2426
// Warning 5159: (122-134): "selfdestruct" has been deprecated. Note that, starting from the Cancun hard fork, the underlying opcode no longer deletes the code and data associated with an account and only transfers its Ether to the beneficiary, unless executed in the same transaction in which the contract was created (see EIP-6780). Any use in newly deployed contracts is strongly discouraged even if the new behavior is taken into account. Future changes to the EVM might further reduce the functionality of the opcode.

test/libsolidity/syntaxTests/viewPureChecker/builtin_functions_view_fail.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ contract C {
2020
}
2121
}
2222
// ----
23+
// Warning 9207: (52-74): transfer will be deprecated in the next breaking version.
24+
// Warning 9207: (132-150): send will be deprecated in the next breaking version.
2325
// Warning 5159: (201-213): "selfdestruct" has been deprecated. Note that, starting from the Cancun hard fork, the underlying opcode no longer deletes the code and data associated with an account and only transfers its Ether to the beneficiary, unless executed in the same transaction in which the contract was created (see EIP-6780). Any use in newly deployed contracts is strongly discouraged even if the new behavior is taken into account. Future changes to the EVM might further reduce the functionality of the opcode.
2426
// TypeError 8961: (52-77): Function cannot be declared as view because this expression (potentially) modifies the state.
2527
// TypeError 8961: (132-153): Function cannot be declared as view because this expression (potentially) modifies the state.

test/libsolidity/syntaxTests/viewPureChecker/eof/builtin_functions.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ contract C {
2020
// ====
2121
// bytecodeFormat: >=EOFv1
2222
// ----
23+
// Warning 9207: (47-69): transfer will be deprecated in the next breaking version.
24+
// Warning 9207: (90-108): send will be deprecated in the next breaking version.

0 commit comments

Comments
 (0)