Glow-Lang / glow

The Glow language for Blockchain Decentralized Applications.

Home Page:https://glow-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Restore first-code-block contract-creation in cases without withdraw or nonnative deposit

AlexKnauth opened this issue · comments

Related issues/pull-requests: #188, #410.

PR #410 fixed the part of issue #188 for single transaction interactions in the "wrong" way by splitting the first transaction into two in all cases, where it should only need to split the first transaction into two in cases where the first code block contains a withdraw or a nonnative deposit.

In the common case where the first code block only contains native deposits and publish statements, the first code block should be included in the contract-creation transaction. This can be done without regressing on issue #188.