Skip to content

Commit

Permalink
minor, test reconstruct
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangsu committed Jun 9, 2023
1 parent 2aad3ce commit a737fac
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ledger/simulation/simulation_eval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2061,6 +2061,8 @@ byte "hello"; log; int 1`,
signedAppCallTxn := appCallTxn.SignedTxn()
signedAppCallTxn.Lsig = transactions.LogicSig{Logic: program}

keccakBytes := ":\xc2%\x16\x8d\xf5B\x12\xa2\\\x1c\x01\xfd5\xbe\xbf\xea@\x8f\xda\xc2\xe3\x1d\xddo\x80\xa4\xbb\xf9\xa5\xf1\xcb"

return simulationTestCase{
input: simulation.Request{
TxnGroups: [][]transactions.SignedTxn{
Expand Down Expand Up @@ -2142,7 +2144,7 @@ byte "hello"; log; int 1`,
Added: []simulation.TealValue{
{
Type: basics.TealBytesType,
Bytes: ":\xc2%\x16\x8d\xf5B\x12\xa2\\\x1c\x01\xfd5\xbe\xbf\xea@\x8f\xda\xc2\xe3\x1d\xddo\x80\xa4\xbb\xf9\xa5\xf1\xcb",
Bytes: keccakBytes,
},
},
Deleted: []simulation.TealValue{
Expand All @@ -2157,7 +2159,7 @@ byte "hello"; log; int 1`,
Deleted: []simulation.TealValue{
{
Type: basics.TealBytesType,
Bytes: ":\xc2%\x16\x8d\xf5B\x12\xa2\\\x1c\x01\xfd5\xbe\xbf\xea@\x8f\xda\xc2\xe3\x1d\xddo\x80\xa4\xbb\xf9\xa5\xf1\xcb",
Bytes: keccakBytes,
},
},
},
Expand All @@ -2175,7 +2177,7 @@ byte "hello"; log; int 1`,
Added: []simulation.TealValue{
{
Type: basics.TealBytesType,
Bytes: ":\xc2%\x16\x8d\xf5B\x12\xa2\\\x1c\x01\xfd5\xbe\xbf\xea@\x8f\xda\xc2\xe3\x1d\xddo\x80\xa4\xbb\xf9\xa5\xf1\xcb",
Bytes: keccakBytes,
},
},
Deleted: []simulation.TealValue{
Expand All @@ -2190,7 +2192,7 @@ byte "hello"; log; int 1`,
Deleted: []simulation.TealValue{
{
Type: basics.TealBytesType,
Bytes: ":\xc2%\x16\x8d\xf5B\x12\xa2\\\x1c\x01\xfd5\xbe\xbf\xea@\x8f\xda\xc2\xe3\x1d\xddo\x80\xa4\xbb\xf9\xa5\xf1\xcb",
Bytes: keccakBytes,
},
},
},
Expand Down

0 comments on commit a737fac

Please sign in to comment.