Skip to content

Commit 3474fb5

Browse files
committed
Move EvalDelta and LogItem our of basics, into transactions.
EvalDelta moved because we need to put a []SignedTxnWithAD inside it, which would have been circular. LogItem moved with it because it seems appropriate - not a very "basic" type. It is only in EvalDelta.
1 parent ca994d3 commit 3474fb5

27 files changed

+943
-1048
lines changed

daemon/algod/api/server/v2/dryrun.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ func StateDeltaToStateDelta(sd basics.StateDelta) *generated.StateDelta {
571571
}
572572

573573
// DeltaLogToLog EvalDelta.Logs to generated.LogItem
574-
func DeltaLogToLog(logs []basics.LogItem, appIdx basics.AppIndex) (*[]generated.LogItem, error) {
574+
func DeltaLogToLog(logs []transactions.LogItem, appIdx basics.AppIndex) (*[]generated.LogItem, error) {
575575
if len(logs) == 0 {
576576
return nil, nil
577577
}

daemon/algod/api/server/v2/test/handlers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func TestGetBlockJsonEncoding(t *testing.T) {
146146
Lsig: lsig,
147147
}
148148
ad := transactions.ApplyData{
149-
EvalDelta: basics.EvalDelta{
149+
EvalDelta: transactions.EvalDelta{
150150
LocalDeltas: map[uint64]basics.StateDelta{
151151
1: {"key": basics.ValueDelta{Action: 1}},
152152
},

0 commit comments

Comments
 (0)