File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Changed
11
+
12
+ - Change ` call ` and ` feeder_call ` functions to support ` bytecheck ` -based integrity check of arguments [ #324 ]
13
+
10
14
### Added
11
15
12
16
- Add ` Session::migrate ` to allow for swapping contract code [ #313 ]
@@ -360,6 +364,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
360
364
361
365
<!-- ISSUES -->
362
366
[ #325 ] : https://github.com/dusk-network/piecrust/issues/325
367
+ [ #324 ] : https://github.com/dusk-network/piecrust/issues/324
363
368
[ #301 ] : https://github.com/dusk-network/piecrust/issues/313
364
369
[ #301 ] : https://github.com/dusk-network/piecrust/issues/301
365
370
[ #296 ] : https://github.com/dusk-network/piecrust/issues/296
Original file line number Diff line number Diff line change @@ -339,6 +339,7 @@ impl Session {
339
339
) -> Result < CallReceipt < R > , Error >
340
340
where
341
341
A : for < ' b > Serialize < StandardBufSerializer < ' b > > ,
342
+ A :: Archived : for < ' b > CheckBytes < DefaultValidator < ' b > > ,
342
343
R : Archive ,
343
344
R :: Archived : Deserialize < R , Infallible >
344
345
+ for < ' b > CheckBytes < DefaultValidator < ' b > > ,
@@ -462,6 +463,7 @@ impl Session {
462
463
) -> Result < CallReceipt < R > , Error >
463
464
where
464
465
A : for < ' b > Serialize < StandardBufSerializer < ' b > > ,
466
+ A :: Archived : for < ' b > CheckBytes < DefaultValidator < ' b > > ,
465
467
R : Archive ,
466
468
R :: Archived : Deserialize < R , Infallible >
467
469
+ for < ' b > CheckBytes < DefaultValidator < ' b > > ,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ pub fn panic_msg_gets_through() -> Result<(), Error> {
64
64
let receipt = session. call :: < _ , Result < ( ) , ContractError > > (
65
65
callcenter_id,
66
66
"call_spend_with_limit" ,
67
- & ( spender_id, 1000u64 ) ,
67
+ & ( spender_id, 1175u64 ) ,
68
68
LIMIT ,
69
69
) ?;
70
70
@@ -125,8 +125,8 @@ pub fn contract_sets_call_limit() -> Result<(), Error> {
125
125
LIMIT ,
126
126
) ?;
127
127
128
- const FIRST_LIMIT : u64 = 1000 ;
129
- const SECOND_LIMIT : u64 = 2000 ;
128
+ const FIRST_LIMIT : u64 = 1175 ;
129
+ const SECOND_LIMIT : u64 = 2175 ;
130
130
131
131
let receipt = session_1st. call :: < _ , Result < ( ) , ContractError > > (
132
132
callcenter_id,
You can’t perform that action at this time.
0 commit comments