Skip to content

Commit

Permalink
fix: fixing type signature of publish on take order
Browse files Browse the repository at this point in the history
  • Loading branch information
HinsonSIDAN committed Sep 9, 2024
1 parent 9d3cc69 commit eba83e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion validators/virtual_dex/take_orders.ak
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use aiken_virtual_dex/types.{DexOracleDatum, VirtualDexDatum}
use cardano/address.{Address, Credential}
use cardano/assets.{AssetName,
PolicyId, Value, from_asset, from_lovelace, merge}
use cardano/certificate.{Certificate}
use cardano/transaction.{Input, Output, Transaction}
use vodka_address.{address_script_hash}
use vodka_extra_signatories.{key_signed}
Expand Down Expand Up @@ -52,7 +53,7 @@ validator virtual_dex_take_orders(
is_operation_key_signed && is_token_paid_to_makers
}

publish(_redeemer: Data, _credential: Credential, tx: Transaction) {
publish(_redeemer: Data, _credential: Certificate, tx: Transaction) {
let Transaction { reference_inputs, .. } = tx
expect DexOracleDatum { operation_key, .. }: DexOracleDatum =
only_input_datum_with(reference_inputs, oracle_nft, "")
Expand Down

0 comments on commit eba83e6

Please sign in to comment.