@@ -1789,6 +1789,9 @@ type AssetSendEvent struct {
17891789 // Error below is set, then it means executing this state failed.
17901790 SendState SendState
17911791
1792+ // NextSendState is the next state that will be executed.
1793+ NextSendState SendState
1794+
17921795 // Error is an optional error, indicating that something went wrong
17931796 // during the execution of the SendState above.
17941797 Error error
@@ -1827,8 +1830,9 @@ func newAssetSendEvent(executedState SendState,
18271830 pkg sendPackage ) * AssetSendEvent {
18281831
18291832 newSendEvent := & AssetSendEvent {
1830- timestamp : time .Now ().UTC (),
1831- SendState : executedState ,
1833+ timestamp : time .Now ().UTC (),
1834+ SendState : executedState ,
1835+ NextSendState : pkg .SendState ,
18321836 // The parcel remains static throughout the state machine, so we
18331837 // don't need to copy it, there can be no data race.
18341838 Parcel : pkg .Parcel ,
@@ -1855,6 +1859,7 @@ func newAssetSendErrorEvent(err error, executedState SendState,
18551859 return & AssetSendEvent {
18561860 timestamp : time .Now ().UTC (),
18571861 SendState : executedState ,
1862+ NextSendState : pkg .SendState ,
18581863 Error : err ,
18591864 Parcel : pkg .Parcel ,
18601865 TransferLabel : pkg .Label ,
0 commit comments