Skip to content

[Clarity 4] current-contract #6440

@obycode

Description

@obycode

Add a new builtin keyword, current-contract, which evaluates to the principal of the current contract, the same as what (as-contract tx-sender) returns in Clarity 3. This prevents developers from needing to write the following Clarity 4 code:

(unwrap-panic (as-contract? () tx-sender))

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Status: ✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions