-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ethclient: move TransactionOpts to avoid import internal package; #2736
Conversation
const MaxNumberOfEntries = 1000 | ||
|
||
func (o *TransactionOpts) Check(blockNumber uint64, timeStamp uint64, statedb *state.StateDB) error { | ||
func TxOptsCheck(o types.TransactionOpts, blockNumber uint64, timeStamp uint64, statedb *state.StateDB) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why these Check functions also not transferred to the transaction_options.go
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, state.StateDB
cannot transfer to low-level package types
, so I leave these util functions here.
) | ||
|
||
type AccountStorage struct { | ||
StorageRoot *common.Hash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StorageRoot *common.Hash | |
StorageSlots map[common.Hash]*common.Hash |
Why not just a pointer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean I know that code was just moved but maybe we could improve it
TransactionOpts is only used by clients, |
|
Description
This PR aims to fix the issue #2722, developer cannot use
ethclient.SendTransactionConditional
directly that is caused by aimport error
.Changes
Notable changes: