substraterust-ink

How to get the value corresponding to solidity "tx.origin" in substrate ink?


let caller = self.env().caller();
tx.origin

Solution

  • This function does not exist in ink!. Reason is that is considered unsafe and its addition a mistake in Solidity.