RGB-WG / rgb-std

RGB standard libs for WASM & low-level integrations (no FS/networking)
https://rgb.tech
Apache License 2.0
66 stars 30 forks source link

no balance on recipient wallet after transfer (script-refactor) #192

Closed nicbus closed 6 months ago

nicbus commented 6 months ago

Using the script-refactor branch (commit b1e1122 plus a cargo update to include the latest fixes) to execute a transfer via CLI, assets are not visible on the recipient wallet.

What I am doing, using opret1st as closing method:

The transfer completes, with the recipient successfully accepting it into the stash, but while the sender sees the RGB change in the contract state, the recipient doesn't see the received assets.

These are the UTXOs after the transfer:

These are the contract states after the transfer:

Owned: assetOwner: amount=1900, utxo=bc:opret1st:2a18ac0adad1105377d51f32c51cec9263a89b501a8735706a236ebe3e813ede:0, witness=bc:2a18ac0adad1105377d51f32c51cec9263a89b501a8735706a236ebe3e813ede # owned by the wallet

- wallet 2

Global: spec := (ticker=("USDT"), name=("USD Tether"), details=~, precision=0) terms := (text=("demo NIA asset"), media=~) issuedSupply := (2000)

Owned: assetOwner:

nicbus commented 6 months ago

I re-tried this using the current master branch (commit f9813b7) and I find the issue to be still there.

For debugging purposes, here is a tarball containing the consignment and the recipient wallet files (index, stash, state) from the run with commit f9813b7. failed_xfer_data.tar.gz

nicbus commented 6 months ago

Re-tested including https://github.com/RGB-WG/rgb-std/pull/193 and it fixes the issue.