mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +00:00
remove 0xef0001 || accounts[0].addr unit test
This commit is contained in:
parent
1d5cae80d0
commit
d82bb03d98
2 changed files with 0 additions and 16 deletions
|
|
@ -81,11 +81,6 @@ type ErrInvalidOpCode struct {
|
||||||
|
|
||||||
func (e *ErrInvalidOpCode) Error() string { return fmt.Sprintf("invalid opcode: %s", e.opcode) }
|
func (e *ErrInvalidOpCode) Error() string { return fmt.Sprintf("invalid opcode: %s", e.opcode) }
|
||||||
|
|
||||||
// NewErrInvalidOpCode is only used in tests to generate an exact ErrInvalidOpCode error.
|
|
||||||
func NewErrInvalidOpCode(opcode OpCode) *ErrInvalidOpCode {
|
|
||||||
return &ErrInvalidOpCode{opcode: opcode}
|
|
||||||
}
|
|
||||||
|
|
||||||
// rpcError is the same interface as the one defined in rpc/errors.go
|
// rpcError is the same interface as the one defined in rpc/errors.go
|
||||||
// but we do not want to depend on rpc package here so we redefine it.
|
// but we do not want to depend on rpc package here so we redefine it.
|
||||||
//
|
//
|
||||||
|
|
|
||||||
|
|
@ -850,17 +850,6 @@ func TestEstimateGas(t *testing.T) {
|
||||||
},
|
},
|
||||||
want: 46000,
|
want: 46000,
|
||||||
},
|
},
|
||||||
// Should retrieve the code of 0xef0001 || accounts[0].addr and return an invalid opcode error.
|
|
||||||
{
|
|
||||||
blockNumber: rpc.LatestBlockNumber,
|
|
||||||
call: TransactionArgs{
|
|
||||||
From: &accounts[0].addr,
|
|
||||||
To: &accounts[0].addr,
|
|
||||||
Value: (*hexutil.Big)(big.NewInt(0)),
|
|
||||||
AuthorizationList: []types.SetCodeAuthorization{setCodeAuthorization},
|
|
||||||
},
|
|
||||||
expectErr: vm.NewErrInvalidOpCode(0xef),
|
|
||||||
},
|
|
||||||
// SetCodeTx with empty authorization list should fail.
|
// SetCodeTx with empty authorization list should fail.
|
||||||
{
|
{
|
||||||
blockNumber: rpc.LatestBlockNumber,
|
blockNumber: rpc.LatestBlockNumber,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue