drink icon indicating copy to clipboard operation
drink copied to clipboard

refactor: update type of `actor` field in the session

Open chungquantin opened this issue 8 months ago • 0 comments

actor field in Session is no longer used in the main logic of the session with the introduction of Revive. Reason for that is all internal logic of the drink library requires the RuntimeOrigin type. Hence, the actor field is only used in the get_actor method. However, as the method is used by the developers to debug the current actor, it would be best to return AccountId instead of RuntimeOrigin.

chungquantin avatar Apr 17 '25 05:04 chungquantin