Commit 142913f2 authored by Mark Tyneway's avatar Mark Tyneway

op-e2e: user action allow set calldata

This commit adds a function to the `BasicUser` that
allows a more complex flow where the calldata can be
set. This allows for the user to make specific contract
calls.
parent a2fa8c0f
......@@ -149,6 +149,13 @@ func (s *BasicUser[B]) ActRandomTxToAddr(t Testing) {
s.txToAddr = to
}
func (s *BasicUser[B]) ActSetTxCalldata(calldata []byte) Action {
return func(t Testing) {
require.NotNil(t, calldata)
s.txCallData = calldata
}
}
func (s *BasicUser[B]) ActSetTxToAddr(to *common.Address) Action {
return func(t Testing) {
s.txToAddr = to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment