aboutsummaryrefslogtreecommitdiffstats
path: root/vm/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'vm/context.go')
-rw-r--r--vm/context.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/vm/context.go b/vm/context.go
index d995c92c7..d14df1aa7 100644
--- a/vm/context.go
+++ b/vm/context.go
@@ -38,13 +38,13 @@ func NewContext(caller ContextRef, object ContextRef, code []byte, gas, price *b
return c
}
-func (c *Context) GetOp(x uint64) OpCode {
- return OpCode(c.GetByte(x))
+func (c *Context) GetOp(n uint64) OpCode {
+ return OpCode(c.GetByte(n))
}
-func (c *Context) GetByte(x uint64) byte {
- if x < uint64(len(c.Code)) {
- return c.Code[x]
+func (c *Context) GetByte(n uint64) byte {
+ if n < uint64(len(c.Code)) {
+ return c.Code[n]
}
return 0