Skip to content

Commit

Permalink
to previous state
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl committed Jan 21, 2025
1 parent 648555d commit ace790a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions gnovm/stdlibs/std/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ import (
"github.com/gnolang/gno/tm2/pkg/std"
)

func GetChainID(m *gno.Machine) string {
return GetContext(m).ChainID
}

func GetChainDomain(m *gno.Machine) string {
return GetContext(m).ChainDomain
}

func AssertOriginCall(m *gno.Machine) {
if !isOriginCall(m) {
m.Panic(typedString("invalid non-origin call"))
Expand All @@ -30,6 +22,14 @@ func isOriginCall(m *gno.Machine) bool {
return n <= 2 && isMsgCall
}

func GetChainID(m *gno.Machine) string {
return GetContext(m).ChainID
}

func GetChainDomain(m *gno.Machine) string {
return GetContext(m).ChainDomain
}

func GetHeight(m *gno.Machine) int64 {
return GetContext(m).Height
}
Expand Down

0 comments on commit ace790a

Please sign in to comment.