File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -1340,6 +1340,8 @@ impl SimpleCast {
1340
1340
1341
1341
/// Decodes abi-encoded hex input or output
1342
1342
///
1343
+ /// When `input=true`, `calldata` string MUST not be prefixed with function selector
1344
+ ///
1343
1345
/// # Example
1344
1346
///
1345
1347
/// ```
@@ -1374,7 +1376,8 @@ impl SimpleCast {
1374
1376
}
1375
1377
1376
1378
/// Decodes calldata-encoded hex input or output
1377
- /// Similar to `abi_decode`, but does requires a function signature prefixed for "calldata"
1379
+ ///
1380
+ /// Similar to `abi_decode`, but `calldata` string MUST be prefixed with function selector
1378
1381
///
1379
1382
/// # Example
1380
1383
///
Original file line number Diff line number Diff line change @@ -443,6 +443,9 @@ pub enum Subcommands {
443
443
Estimate ( EstimateArgs ) ,
444
444
445
445
/// Decode ABI-encoded input data.
446
+ ///
447
+ /// Similar to `abi-decode --input`, but function selector MUST be prefixed in `calldata`
448
+ /// string
446
449
#[ clap( visible_aliases = & [ "--calldata-decode" , "cdd" ] ) ]
447
450
CalldataDecode {
448
451
/// The function signature in the format `<name>(<in-types>)(<out-types>)`.
@@ -454,8 +457,9 @@ pub enum Subcommands {
454
457
455
458
/// Decode ABI-encoded input or output data.
456
459
///
457
- /// Defaults to decoding output data. To decode input data pass --input or use cast
458
- /// --calldata-decode.
460
+ /// Defaults to decoding output data. To decode input data pass --input.
461
+ ///
462
+ /// When passing `--input`, function selector must NOT be prefixed in `calldata` string
459
463
#[ clap( name = "abi-decode" , visible_alias = "ad" ) ]
460
464
AbiDecode {
461
465
/// The function signature in the format `<name>(<in-types>)(<out-types>)`.
You can’t perform that action at this time.
0 commit comments