-
Notifications
You must be signed in to change notification settings - Fork 375
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
fix: deprecate std.GetOrigCaller #2906
Conversation
Signed-off-by: Norman Meier <norman@samourai.coop>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2906 +/- ##
=======================================
Coverage 60.95% 60.96%
=======================================
Files 564 564
Lines 75273 75273
=======================================
+ Hits 45884 45889 +5
+ Misses 26019 26012 -7
- Partials 3370 3372 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Norman Meier <norman@samourai.coop>
from @leohhhn
What is the advantage or GetOrigCaller vs taking the address as input? |
For stdlibs, we'll err on the side of caution and add things after launch if necessary. So, relating to Leon's point, I'd remove it then add it back if necessary. |
The difference is that the developer can enforce this rule. If the address was an input, the user could put in any random address. In my specific example, I needed the realm calling my realm to be deployed by the same user that did some other action. This specific case I've seen a couple of times. |
@leohhhn wdyt about getting the user address by inspecting the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking to prevent merging until the necessary discussions have taken place.
We'll actually be keeping GetOriginCaller for now: #1475 (comment) Thanks! |
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description