@@ -73,10 +73,10 @@ pub mod give_me {
73
73
pub fn was_it_ten ( & self ) {
74
74
ink_env:: debug_println!(
75
75
"received payment: {}" ,
76
- self . env( ) . transferred_balance ( )
76
+ self . env( ) . transferred_value ( )
77
77
) ;
78
78
assert ! (
79
- self . env( ) . transferred_balance ( ) == 10 ,
79
+ self . env( ) . transferred_value ( ) == 10 ,
80
80
"payment was not ten"
81
81
) ;
82
82
}
@@ -137,16 +137,16 @@ pub mod give_me {
137
137
0xCA , 0xFE , 0xBA , 0xBE ,
138
138
] ) ) ;
139
139
data. push_arg ( & accounts. eve ) ;
140
- let mock_transferred_balance = 10 ;
140
+ let mock_transferred_value = 10 ;
141
141
142
142
// Push the new execution context which sets Eve as caller and
143
- // the `mock_transferred_balance ` as the value which the contract
143
+ // the `mock_transferred_value ` as the value which the contract
144
144
// will see as transferred to it.
145
145
ink_env:: test:: push_execution_context :: < ink_env:: DefaultEnvironment > (
146
146
accounts. eve ,
147
147
contract_id ( ) ,
148
148
1000000 ,
149
- mock_transferred_balance ,
149
+ mock_transferred_value ,
150
150
data,
151
151
) ;
152
152
@@ -168,16 +168,16 @@ pub mod give_me {
168
168
0xCA , 0xFE , 0xBA , 0xBE ,
169
169
] ) ) ;
170
170
data. push_arg ( & accounts. eve ) ;
171
- let mock_transferred_balance = 13 ;
171
+ let mock_transferred_value = 13 ;
172
172
173
173
// Push the new execution context which sets Eve as caller and
174
- // the `mock_transferred_balance ` as the value which the contract
174
+ // the `mock_transferred_value ` as the value which the contract
175
175
// will see as transferred to it.
176
176
ink_env:: test:: push_execution_context :: < ink_env:: DefaultEnvironment > (
177
177
accounts. eve ,
178
178
contract_id ( ) ,
179
179
1000000 ,
180
- mock_transferred_balance ,
180
+ mock_transferred_value ,
181
181
data,
182
182
) ;
183
183
@@ -277,7 +277,7 @@ pub mod give_me {
277
277
278
278
// when
279
279
// Push the new execution context which sets Eve as caller and
280
- // the `mock_transferred_balance ` as the value which the contract
280
+ // the `mock_transferred_value ` as the value which the contract
281
281
// will see as transferred to it.
282
282
set_sender ( accounts. eve ) ;
283
283
ink_env:: test:: set_value_transferred :: < ink_env:: DefaultEnvironment > ( 10 ) ;
@@ -296,7 +296,7 @@ pub mod give_me {
296
296
297
297
// when
298
298
// Push the new execution context which sets Eve as caller and
299
- // the `mock_transferred_balance ` as the value which the contract
299
+ // the `mock_transferred_value ` as the value which the contract
300
300
// will see as transferred to it.
301
301
set_sender ( accounts. eve ) ;
302
302
ink_env:: test:: set_value_transferred :: < ink_env:: DefaultEnvironment > ( 13 ) ;
0 commit comments