File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 66
77- [ ` list.index_of ` ] ( https://aiken-lang.github.io/stdlib/aiken/list.html#index_of ) : For getting a values index in a list.
88- [ ` transaction.placeholder ` ] ( https://aiken-lang.github.io/stdlib/aiken/transaction.html#placeholder ) : For constructing test transactions.
9+ - [ ` transaction.value.is_zero ` ] ( https://aiken-lang.github.io/stdlib/aiken/transaction/value.html#is_zero ) : For checking whether a value is null.
910
1011### Changed
1112
Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ pub fn zero() -> Value {
3939 Value { inner: dict.new () }
4040}
4141
42+ /// Check is a `Value` is zero. That is, it has no assets and holds no Ada/Lovelace.
43+ pub fn is_zero (self: Value ) -> Bool {
44+ self == zero ()
45+ }
46+
4247/// Construct a `Value` from an asset identifier (i.e. `PolicyId` + `AssetName`)
4348/// and a given quantity.
4449pub fn from_asset (
You can’t perform that action at this time.
0 commit comments