Skip to content

Commit

Permalink
refactor: remove unecessary resourse error atom
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Jul 18, 2024
1 parent 62a14d6 commit fedbafb
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions x/logic/prolog/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package prolog

import (
"github.com/ichiban/prolog/engine"

"cosmossdk.io/store/types"
)

var (
Expand Down Expand Up @@ -82,8 +80,6 @@ var (
// The module resource is the representation of the module with which the interaction is made.
// The module resource is denoted as a compound with the name of the module.
AtomResourceModule = engine.NewAtom("resource_module")
// AtomResourceGas is the atom denoting the "gas" resource.
AtomResourceGas = engine.NewAtom("gas")
)

// ResourceContext returns a term representing the context resource.
Expand All @@ -96,12 +92,6 @@ func ResourceModule(module string) engine.Term {
return AtomResourceModule.Apply(engine.NewAtom(module))
}

// ResourceGas returns a term representing the gas resource with the given descriptor, consumed and limit at the
// given context.
func ResourceGas(descriptor string, consumed types.Gas, limit types.Gas) engine.Term {
return AtomResourceGas.Apply(engine.NewAtom(descriptor), engine.Integer(int64(consumed)), engine.Integer(int64(limit)))
}

var (
AtomOperationInput = engine.NewAtom("input")
AtomOperationExecute = engine.NewAtom("execute")
Expand Down

0 comments on commit fedbafb

Please sign in to comment.