Skip to content

Commit e4f4c87

Browse files
✨ Handle Large Calldata Input Without Freezing (#43)
### 🕓 Changelog This PR enables [Readline](https://tiswww.case.edu/php/chet/readline/rltop.html) (`read -e`) for `data` input in the interactive mode to handle large calldata without terminal freezing. The buffer now supports several MB instead of ~4KB. --------- Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch> Co-authored-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
1 parent 620b19b commit e4f4c87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

safe_hashes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ EOF
13521352
value="${value_input:-$value}"
13531353
validate_value $value "value"
13541354

1355-
read -rp "Enter the \`data\` (default: $data): " data_input
1355+
read -erp "Enter the \`data\` (default: $data): " data_input
13561356
data="${data_input:-$data}"
13571357

13581358
while true; do

0 commit comments

Comments
 (0)