common

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StaticCallTestSuite

type StaticCallTestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

func NewStaticCallTestSuite

func NewStaticCallTestSuite(create network.CreateEvmApp) *StaticCallTestSuite

func (*StaticCallTestSuite) SetupTest

func (s *StaticCallTestSuite) SetupTest()

func (*StaticCallTestSuite) TestCrossContractViewCallWriteProtection

func (s *StaticCallTestSuite) TestCrossContractViewCallWriteProtection()

TestCrossContractViewCallWriteProtection tests that precompile state changes are blocked when called through a cross-contract STATICCALL chain: 1. ViewCaller invokes StaticCallbackTarget.callback() via ICallback interface (STATICCALL) 2. Inside callback(), StaticCallbackTarget attempts werc20.transfer() via regular CALL 3. The transfer should fail because the static context propagates through the call chain

func (*StaticCallTestSuite) TestNonStaticContractCall

func (s *StaticCallTestSuite) TestNonStaticContractCall()

func (*StaticCallTestSuite) TestNonStaticPrecompileCall

func (s *StaticCallTestSuite) TestNonStaticPrecompileCall()

func (*StaticCallTestSuite) TestStaticContractCall

func (s *StaticCallTestSuite) TestStaticContractCall()

func (*StaticCallTestSuite) TestStaticPrecompileCall

func (s *StaticCallTestSuite) TestStaticPrecompileCall()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL