Contracts/Revive: caller_is_root
does not return bool
#6767
Labels
I2-bug
The node fails to follow expected behavior.
I10-unconfirmed
Issue might be valid, but it's not yet known.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
In both
pallet-revive
+pallet-contracts
the host fncaller_is_root
returnsu32
, opposed as to what the comments state (bool
):polkadot-sdk/substrate/frame/contracts/uapi/src/host.rs
Lines 270 to 272 in 82117ad
The analog function
caller_is_origin
returnsbool
for everything.The host fn has already been stabilized for
pallet-contracts
and also implemented this way in hyperledger-solang/solang#1620 (cc @xermicus). So changing it forpallet-contracts
is probably tricky, forpallet-revive
it would be good though.cc @athei
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: