Response: {
"error": "formula
if (trigger.output[[asset!="base"]].asset == "ambigous")
bounce("You can only send a single NFT at a time");
$unitInfo = unit[trigger.output[[asset!="base"]].asset];
response["test"] = json_stringify(unit[$unitInfo.trigger_unit]);
$NFT = $fetchNFT(trigger.output[[asset!="base"]].asset);
$prof = $USER_REGISTRY_ADDRESS.$profileOf($NFT.author);
$feedData = data_feed[[oracles=this_address, feed_name=trigger.output[[asset!="base"]].asset, ifnone="OK", ifseveral="last", type="string"]];
if ($feedData == "REVOKED")
bounce("We revoked the trading of that token probably due to copyright reasons");
if (NOT trigger.data["price"])
bounce("price field is mandatory");
if (trigger.data["currency"]){
if (NOT $CURRENCY_REGISTRY.$getCurrency(trigger.data["currency"]))
bounce("We do not support that currency");
}
else {
if (NOT is_integer(trigger.data["price"]))
bounce("Price must be an integer");
if (NOT is_valid_amount(trigger.data["price"]))
bounce("Price is not a valid amount");
if (trigger.data["price"] < 20000)
bounce("The minimum sale price is 20.000 bytes");
}
if (trigger.data["auction"]){
if (NOT exists(trigger.data["endTime"]))
bounce("If you want to hold an auction you have to specify the endTime");
if (trigger.data["endTime"] <= timestamp)
bounce("You cannot set the end time in the past");
if (trigger.data["endTime"] > timestamp + 2628000)
bounce("You cannot set the end time in more than 30 days");
}
failed: formula $profileOf($arg1) failed: bad value of address in attestation: false"
}