Skip to content

Commit e060afa

Browse files
committed
refactor core BoolValue functionality into new values package
1 parent 74a29bb commit e060afa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1212
-863
lines changed

interpreter/account_test.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ func TestInterpretAccountStorageBorrow(t *testing.T) {
996996
AssertValuesEqual(
997997
t,
998998
inter,
999-
interpreter.AsBoolValue(true),
999+
interpreter.BoolValue(true),
10001000
checkRes,
10011001
)
10021002

@@ -1035,7 +1035,7 @@ func TestInterpretAccountStorageBorrow(t *testing.T) {
10351035
AssertValuesEqual(
10361036
t,
10371037
inter,
1038-
interpreter.AsBoolValue(true),
1038+
interpreter.BoolValue(true),
10391039
checkRes,
10401040
)
10411041

@@ -1058,7 +1058,7 @@ func TestInterpretAccountStorageBorrow(t *testing.T) {
10581058
AssertValuesEqual(
10591059
t,
10601060
inter,
1061-
interpreter.AsBoolValue(false),
1061+
interpreter.BoolValue(false),
10621062
checkRes,
10631063
)
10641064

@@ -1085,7 +1085,7 @@ func TestInterpretAccountStorageBorrow(t *testing.T) {
10851085
AssertValuesEqual(
10861086
t,
10871087
inter,
1088-
interpreter.AsBoolValue(false),
1088+
interpreter.BoolValue(false),
10891089
checkRes,
10901090
)
10911091
})
@@ -1174,7 +1174,7 @@ func TestInterpretAccountStorageBorrow(t *testing.T) {
11741174
AssertValuesEqual(
11751175
t,
11761176
inter,
1177-
interpreter.AsBoolValue(true),
1177+
interpreter.BoolValue(true),
11781178
checkRes,
11791179
)
11801180

@@ -1213,7 +1213,7 @@ func TestInterpretAccountStorageBorrow(t *testing.T) {
12131213
AssertValuesEqual(
12141214
t,
12151215
inter,
1216-
interpreter.AsBoolValue(true),
1216+
interpreter.BoolValue(true),
12171217
checkRes,
12181218
)
12191219

@@ -1236,7 +1236,7 @@ func TestInterpretAccountStorageBorrow(t *testing.T) {
12361236
AssertValuesEqual(
12371237
t,
12381238
inter,
1239-
interpreter.AsBoolValue(false),
1239+
interpreter.BoolValue(false),
12401240
checkRes,
12411241
)
12421242

0 commit comments

Comments
 (0)