Fix handling of init in create_calldata #523

Merged
zxq9 merged 2 commits from fix_create_calldata into master 2019-02-28 18:12:16 +09:00
zxq9 commented 2019-02-28 17:18:05 +09:00 (Migrated from gitlab.com)

Created by: hanssv

*Created by: hanssv*
zxq9 commented 2019-02-28 17:21:44 +09:00 (Migrated from gitlab.com)

Created by: happi

Review: Approved

*Created by: happi* **Review:** Approved
zxq9 commented 2019-02-28 17:24:45 +09:00 (Migrated from gitlab.com)

Created by: UlfNorell

Will this not cause strange errors when you have an init function, but some other error?

A nicer approach might be to parse the contract and look for the init function, and only insert a default init if you don't find it.

*Created by: UlfNorell* Will this not cause strange errors when you have an init function, but some other error? A nicer approach might be to parse the contract and look for the init function, and only insert a default init if you don't find it.
zxq9 commented 2019-02-28 17:28:20 +09:00 (Migrated from gitlab.com)

Created by: UlfNorell

Review: Approved

*Created by: UlfNorell* **Review:** Approved
zxq9 commented 2019-02-28 17:32:52 +09:00 (Migrated from gitlab.com)

Created by: hanssv

Yet another approach would be to return the first error when the second check_call also fail
🤔

*Created by: hanssv* Yet another approach would be to return the first error when the second `check_call` also fail :thinking:
zxq9 commented 2019-02-28 17:58:49 +09:00 (Migrated from gitlab.com)

Created by: happi

Review: Approved

*Created by: happi* **Review:** Approved
zxq9 commented 2019-02-28 18:04:19 +09:00 (Migrated from gitlab.com)

Created by: UlfNorell

Review: Approved

*Created by: UlfNorell* **Review:** Approved
zxq9 commented 2019-02-28 18:12:16 +09:00 (Migrated from gitlab.com)

Merged by: hanssv at 2019-02-28 09:12:16 UTC

*Merged by: hanssv at 2019-02-28 09:12:16 UTC*
Sign in to join this conversation.
No description provided.