When I cargo run --example rgb21 with examples/rgb21.rs modified by adding my own outpoint under beneficiary and setting testnet to true in verified_contract.validate call, the stdout only shows (naming=(ticker=("TEST"), name=("Test uda"), details=~), precision=0) at the end of the output where I would also expect the owner to be displayed as is the case with the RGB20 example.
When importing this contract and rgb state <contract_id> RGB21 the full output is this:
The assetOwner is also not shown with the provided examples/rgb21-simplest.contract.rgb running rgb state
As an aside, there is an Error: unsupported value `2` for enum `ContainerVer` encountered during decode operation when rgb import a contract created after the recent changes (after commit 943c65d). I assume due to rgb-contracts not yet being updated to contract version 2.
rgb transfer error
I am not sure this is correlated to the above issue.
After importing the example RGB21 contract, creating an invoice and a psbt file, rgb transfer shows Error: state provided via PSBT inputs is not sufficient to cover invoice state requirements.
full logs in which I used rgb aliases for different data directories:
$ rgb3 import examples/rgb21-old.contract.rgb
Contract rgb:2uMxdEm-oeF1WC9Hb-t4cw7YJVt-hVZdGoCdS-RnYoKXAXj-5h4pgLs imported to the stash
$ c21="rgb:2uMxdEm-oeF1WC9Hb-t4cw7YJVt-hVZdGoCdS-RnYoKXAXj-5h4pgLs"
$ rgb4 import examples/rgb21-old.contract.rgb
Contract rgb:2uMxdEm-oeF1WC9Hb-t4cw7YJVt-hVZdGoCdS-RnYoKXAXj-5h4pgLs imported to the stash
$ rgb4 invoice $c21 RGB21 1 tapret1st:b82a11ea842e99508636d59a3338d932d02618fa28a78123b1df591b20b8eeb0:0
rgb:2uMxdEm-oeF1WC9Hb-t4cw7YJVt-hVZdGoCdS-RnYoKXAXj-5h4pgLs/RGB21/1+utxob:2nc7Ab4-PYTqVQfZS-hrzKmfgn3-kcnYE1rog-MN4vggmW1-PuiLVfm
$ btc-cold construct -k "output(0) TAPRET(0)" -i "b4c1b479bdc64ab637f408996ebc20288ab6192f329b87df56f3429327dd2d05:1 /0/0" ~/Library/Application\ Support/Descriptor\ Wallet\ Testnet/w3.wallet transfer21_rgb3_to4.psbt 10
Wallet descriptor:
tr([39908a2e/86h/1h/0h]tpubDCc6J2ZLbYqEqWiFS893Z8y5ckHRV2HRj7nqyh5t6GpPEJcPUTgAdoxz2yumZmHLKbWCCbLcdp9C3x6fi38k9Pv2nHaGowv1v42gTxwFtnQ/*/*)#kmzzt3ac
Re-scanning network testnet using electrum.blockstream.info:60001 ... done
PSBT: 70736274ff01005e0200000001052ddd279342f356df879b322f19b68a2820bc6e9908f437b64ac6bd79b4c1b40100000000ffffffff01fe510000000000002251208cd3830b00d4f35eb9dd82b21bd6356070ad55263bf464878caf0caba89374bc000000004f01043587cf034f0903b580000000cab6430d20d8ba3fc0e673edc4ac6f1950dd98e6ea0f325cbb66b909aa94a50d028f9abe2069ff69370b2793ae50cdb3b336a0159e9f46b8c506650a5a6910f3061039908a2e56000080010000800000008000010089010000000196b1fda2828defdb4dfba5835e37c6ab44b77f7471574edc6bd21fddd1064a380000000000ffffffff02ba851a0000000000225120d5aa23f70c061c526ab8232ef4bc19bcdbc2248f2ef3cb68629c068d7c59747c08520000000000002251204a3e2d16cd2d4c82fddef2c613718ae8836f7dcaac1aa9be9e4a48d541a3d9ae00000000010304010000002116efac612b72e0a9f003967a77b19961dfd687a6c61c7b174a41827d2edc0dd700190039908a2e5600008001000080000000800000000000000000011720efac612b72e0a9f003967a77b19961dfd687a6c61c7b174a41827d2edc0dd700002202032ac2addf1867f615237399510618068275f17f246011b189e230489243d4c6041839908a2e56000080010000800000008001000000000000000105202ac2addf1867f615237399510618068275f17f246011b189e230489243d4c60409fc06544150524554000000
$ rgb3 transfer transfer21_rgb3_to4.psbt rgb:2uMxdEm-oeF1WC9Hb-t4cw7YJVt-hVZdGoCdS-RnYoKXAXj-5h4pgLs/RGB21/1+utxob:2nc7Ab4-PYTqVQfZS-hrzKmfgn3-kcnYE1rog-MN4vggmW1-PuiLVfm transfer21_rgb3_to4.rgb
Error: state provided via PSBT inputs is not sufficient to cover invoice state requirements.
assetOwner
not displayedcargo run --example rgb21
withexamples/rgb21.rs
modified by adding my own outpoint underbeneficiary
and settingtestnet
totrue
inverified_contract
.validate
call, the stdout only shows(naming=(ticker=("TEST"), name=("Test uda"), details=~), precision=0)
at the end of the output where I would also expect the owner to be displayed as is the case with the RGB20 example.When importing this contract and
rgb state <contract_id> RGB21
the full output is this:assetOwner
is also not shown with the providedexamples/rgb21-simplest.contract.rgb
runningrgb state
Error: unsupported value `2` for enum `ContainerVer` encountered during decode operation
whenrgb import
a contract created after the recent changes (after commit 943c65d). I assume due to rgb-contracts not yet being updated to contract version 2.rgb transfer
errorrgb transfer
showsError: state provided via PSBT inputs is not sufficient to cover invoice state requirements.
full logs in which I used
rgb
aliases for different data directories: