fix: fevm: don't hard-code method numbers

This commit is contained in:
Steven Allen 2023-01-11 18:44:14 -08:00
parent 3456d90e0d
commit c73a0b5265

View File

@ -93,7 +93,7 @@ func (e *EVM) InvokeSolidity(ctx context.Context, sender address.Address, target
To: target,
From: sender,
Value: big.Zero(),
Method: abi.MethodNum(2),
Method: builtintypes.MethodsEVM.InvokeContract,
Params: params,
}