rgb-std icon indicating copy to clipboard operation
rgb-std copied to clipboard

contract state with iface fungible strange

Open Matrix-Zhang opened this issue 10 months ago • 4 comments

when we get contract state with iface.fungible(), it return wrong assertOwner

the asset was issued at seal: a0ea0a6b4f9e52d2b12a1f7872c66f6576edfe5b2d88ad158f1d33835068a040:1

then we transfer someone others, the new seal is 41563b544dc1018162fae1e63c471a0693514aeeda4bc96307f5bdcb5933f97f:0

but when we fetch the contract state with iface.fungible(), it just rerturn a0ea0a6b4f9e52d2b12a1f7872c66f6576edfe5b2d88ad158f1d33835068a040:1

the attachment is the stock.dat

i peek it with hex editor, i can found 41563b544dc1018162fae1e63c471a0693514aeeda4bc96307f5bdcb5933f97f

stock.dat.zip

Matrix-Zhang avatar Apr 10 '24 12:04 Matrix-Zhang

Do you use v0.11.0-beta.5 from crates.io?

dr-orlovsky avatar Apr 10 '24 12:04 dr-orlovsky

Do you use v0.11.0-beta.5 from crates.io?

yes, the version is beta.5

Matrix-Zhang avatar Apr 11 '24 02:04 Matrix-Zhang

but when we fetch the contract state with iface.fungible(), it just rerturn

on sender or receiver?

The attached stock is whose?

dr-orlovsky avatar Apr 11 '24 06:04 dr-orlovsky

but when we fetch the contract state with iface.fungible(), it just rerturn

on sender or receiver?

The attached stock is whose?

sender, the assert's first beneficiary

Matrix-Zhang avatar Apr 11 '24 08:04 Matrix-Zhang

I am pretty sure the issue is closed in one of PRs we had in may. Can you pls check that now the system works correctly?

dr-orlovsky avatar Jun 08 '24 16:06 dr-orlovsky