Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Feature emit appcall #137

Merged
merged 3 commits into from
Dec 28, 2017
Merged

Feature emit appcall #137

merged 3 commits into from
Dec 28, 2017

Conversation

localhuman
Copy link
Collaborator

@localhuman localhuman commented Dec 28, 2017

What current issue(s) does this address?, or what feature is it adding?

  • Adds the ability to chain contract invocations by building them with ScriptBuilder
  • Works for invocations with or without an array of parameters
  • Replaces existing tested functionality, no additional tests added

** Sample Usage **

        sb = ScriptBuilder()
        sb.EmitAppCallWithOperation(self.ScriptHash, 'name')
        sb.EmitAppCallWithOperation(self.ScriptHash, 'symbol')
        sb.EmitAppCallWithOperation(self.ScriptHash, 'decimals')

        tx, fee, results, num_ops = test_invoke(sb.ToArray(), wallet, [])

@localhuman
Copy link
Collaborator Author

This resolves #100

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 68.375% when pulling 851b946 on feature-emit-appcall into 0c0b7be on development.

@localhuman localhuman merged commit 618c92f into development Dec 28, 2017
@localhuman localhuman deleted the feature-emit-appcall branch December 28, 2017 19:21
@metachris
Copy link
Contributor

Great!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants