From c30e7f5f99f9ad4d9552b645d7b89d7385972f99 Mon Sep 17 00:00:00 2001 From: stefan Date: Mon, 22 May 2023 20:08:09 -0400 Subject: stack --- node/node.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 node/node.go (limited to 'node/node.go') diff --git a/node/node.go b/node/node.go new file mode 100644 index 0000000..18640e9 --- /dev/null +++ b/node/node.go @@ -0,0 +1,15 @@ +package main + +import ( + "fmt" + + "github.com/holiman/uint256" +) + +func main() { + s := NewStack() + x, _ := uint256.FromHex("0xfeedface") + s.Push(x) + y := s.Pop() + fmt.Println(y.String()) +} -- cgit v1.2.3