diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-16 21:28:33 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-16 21:28:33 +0800 |
commit | 702218008ee2b6d708d6b2821cdef80736bb3224 (patch) | |
tree | d55ff7ce88187082378e7d8e4c2f3aad14d23b4e /Godeps/_workspace/src/github.com/ethereum/serpent-go/tests | |
parent | 202362d9258335c695eb75f55f4be74a50a1af33 (diff) | |
download | go-tangerine-702218008ee2b6d708d6b2821cdef80736bb3224.tar.gz go-tangerine-702218008ee2b6d708d6b2821cdef80736bb3224.tar.zst go-tangerine-702218008ee2b6d708d6b2821cdef80736bb3224.zip |
Add versioned dependencies from godep
Diffstat (limited to 'Godeps/_workspace/src/github.com/ethereum/serpent-go/tests')
-rw-r--r-- | Godeps/_workspace/src/github.com/ethereum/serpent-go/tests/main.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/tests/main.go b/Godeps/_workspace/src/github.com/ethereum/serpent-go/tests/main.go new file mode 100644 index 000000000..2f2d17784 --- /dev/null +++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/tests/main.go @@ -0,0 +1,21 @@ +package main + +import ( + "fmt" + + "github.com/ethereum/serpent-go" +) + +func main() { + out, _ := serpent.Compile(` +// Namecoin +if !contract.storage[msg.data[0]]: # Is the key not yet taken? + # Then take it! + contract.storage[msg.data[0]] = msg.data[1] + return(1) +else: + return(0) // Otherwise do nothing + `) + + fmt.Printf("%x\n", out) +} |