Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieving the user in Iroha smart contracts #3137

Closed
6r1d opened this issue Feb 10, 2023 · 1 comment
Closed

Retrieving the user in Iroha smart contracts #3137

6r1d opened this issue Feb 10, 2023 · 1 comment
Assignees
Labels
1.5 iroha1 The legacy version of Iroha. question Further information is requested

Comments

@6r1d
Copy link
Contributor

6r1d commented Feb 10, 2023

Yesterday, dhawkmoon in the Hyperledger Iroha community requested information on Iroha 1 smart contract support while working on a legacy Iroha 1 Burrow integration for smart contracts using Solidity.

dhawkmoon asked if there is a way to get the login of smart contract caller (foo@bar) inside a smart contract to check permissions based on the caller's role (to make a delegation call to the service contract).

There's an alternative question in case that does not work: is it possible to retrieve the caller's account using the msg.sender property?


@baziorek replied that Iroha 1 has an API that wraps Iroha commands and queries.

He said that when a programmer uses multiple commands wrapped that way, they will be unable to find out which command failed and why. He had also recommended this page to dhawkmoon.


If you have time to comment, please do, @iceseer. Thanks in advance for your comments on this request.

@6r1d 6r1d added question Further information is requested 1.5 labels Feb 10, 2023
@6r1d 6r1d self-assigned this Feb 10, 2023
@appetrosyan
Copy link
Contributor

Unfortunately Iroha v1 is in maintenance mode, unlikely to be addressed, given lack of interest, the issue is closed.

@appetrosyan appetrosyan closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2023
@nxsaken nxsaken added the iroha1 The legacy version of Iroha. label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.5 iroha1 The legacy version of Iroha. question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants