Skip to content

Instantly share code, notes, and snippets.

@dexterslabor
Created September 15, 2019 18:06
Show Gist options
  • Save dexterslabor/8dcb215a772e0b2df8c99c9d24921fa6 to your computer and use it in GitHub Desktop.
Save dexterslabor/8dcb215a772e0b2df8c99c9d24921fa6 to your computer and use it in GitHub Desktop.
granary client - originate contract videos for alice transferring 0 from alice running $PWD/videos.tz --init '1' --dry-run
@georgemac510
Copy link

import smartpy as sp

class videos(sp.Contract):
def init(self, searchVideos):
self.init(phrase = searchVideos)

@sp.entryPoint
def videosTopic(self, params):
    self.data.phrase = params.newVideos

@addtest(name = "Basic Test")
def test():
# Instantiate the videos contract
c1 = videos("Awesome videos!")
# Show its representation
html = c1.fullHtml()
setOutput(html)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment