Skip to content

Commit

Permalink
remove some warp code still
Browse files Browse the repository at this point in the history
  • Loading branch information
wlawt committed Apr 24, 2024
1 parent a338e5d commit 60a63f5
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions chain/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ type Transaction struct {

func NewTx(base *Base, actions []Action) *Transaction {
return &Transaction{
Base: base,
Actions: actions,
Base: base,
Actions: actions,
}
}

Expand Down Expand Up @@ -122,14 +122,6 @@ func (t *Transaction) StateKeys(sm StateManager) (state.Keys, error) {
stateKeys.Add(k, v)
}
}

// TODO: handle multiple outgoing warp messages (use actionID instead of txID)
if action.OutputsWarpMessage() {
// TODO: handle multiple outgoing warp messages
p := sm.OutgoingWarpKeyPrefix(t.id)
k := keys.EncodeChunks(p, MaxOutgoingWarpChunks)
stateKeys.Add(string(k), state.Allocate|state.Write)
}
}

// Cache keys if called again
Expand Down

0 comments on commit 60a63f5

Please sign in to comment.