Documentation
¶
Index ¶
- type StaticCallTestSuite
- func (s *StaticCallTestSuite) SetupTest()
- func (s *StaticCallTestSuite) TestCrossContractViewCallWriteProtection()
- func (s *StaticCallTestSuite) TestNonStaticContractCall()
- func (s *StaticCallTestSuite) TestNonStaticPrecompileCall()
- func (s *StaticCallTestSuite) TestStaticContractCall()
- func (s *StaticCallTestSuite) TestStaticPrecompileCall()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticCallTestSuite ¶
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()
Click to show internal directories.
Click to hide internal directories.