Skip to content

Make Runtime.ScriptContainer return a Transaction object #858

@lock9

Description

@lock9

Hi,

Problem:
The Runtime.ScriptContainer is returning a generic object. This demands users to cast it into a transaction every time they want to use it:
var tx = (Transaction)Runtime.ScriptContainer;

Proposed Solution:
Since the ScriptContainer will always be a Transaction, the smart contract compiler can return a Transaction type instead of object.
Result:
var tx = Runtime.ScriptContainer;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions