Commit c1d2b5c
authored
Fix BytesN to ScVal conversion in testutils (#1442)
### What
Change BytesN to ScVal conversion from TryFrom to From in test
utilities.
### Why
Unwrapping is safe because values in test environment must be valid
ScVal. Even if this was wrong, it's a good tradeoff that improves the
developer experience. The Bytes->ScVal and String->ScVal conversions
already use this pattern and it seems BytesN wasn't updated at the same
time to use that pattern.1 parent d150517 commit c1d2b5c
1 file changed
+11
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1076 | 1076 | | |
1077 | 1077 | | |
1078 | 1078 | | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
1083 | 1087 | | |
1084 | 1088 | | |
1085 | 1089 | | |
1086 | 1090 | | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
1091 | 1094 | | |
1092 | 1095 | | |
1093 | 1096 | | |
| |||
0 commit comments