Skip to content

Commit

Permalink
Add timestamp in the conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmanzanera committed Oct 14, 2022
1 parent 38e42d1 commit c5e60aa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/archethic/contracts/contract/conditions.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ defmodule Archethic.Contracts.Contract.Conditions do
:uco_transfers,
:token_transfers,
:previous_public_key,
:timestamp,
origin_family: :all
]

Expand All @@ -27,7 +28,8 @@ defmodule Archethic.Contracts.Contract.Conditions do
uco_transfers: map() | Macro.t() | nil,
token_transfers: map() | Macro.t() | nil,
previous_public_key: binary() | Macro.t() | nil,
origin_family: SharedSecrets.origin_family() | :all
origin_family: SharedSecrets.origin_family() | :all,
timestamp: DateTime.t() | nil
}

def empty?(%__MODULE__{
Expand All @@ -38,7 +40,8 @@ defmodule Archethic.Contracts.Contract.Conditions do
secrets: nil,
uco_transfers: nil,
token_transfers: nil,
previous_public_key: nil
previous_public_key: nil,
timestamp: nil
}),
do: true

Expand Down

0 comments on commit c5e60aa

Please sign in to comment.