ethergo/util/copy.go
Function CopyTX
has 62 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func CopyTX(unsignedTx *types.Transaction, options ...CopyOption) (*types.Transaction, error) {
// tx is immutable except within the confines of type. Here we manually copy over the inner values
// these need to be overwritten, but copied over anyway for parity
// the v paramater will be modified by the signer if converting from a dynamic tx to a legacy tx