-
Notifications
You must be signed in to change notification settings - Fork 10
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
General improvements and tech-debt #121
Conversation
flag.StringVar(&coinbase, "coinbase", "", "coinbase address to use for fee collection") | ||
flag.StringVar(&gas, "gas-price", "1", "static gas price used for EVM transactions") | ||
flag.StringVar(&flowChainID, "flow-network-id", "flow-emulator", "Flow network ID (flow-emulator, flow-previewnet)") | ||
flag.StringVar(&coinbase, "coinbase", "", "Coinbase address to use for fee collection") |
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.
A bit out of context of this PR, but it occurred to me that we might better fetch this from the COA
resource that resides in the coa-address
. We can do this either through a script on startup and memoize the value.
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.
ohh you are right, can you open an issue for this.
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.
Sure thing 👍
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.
Opened #122
index int | ||
seqNum uint64 | ||
) | ||
// execute concurrently so we can speed up all the information we need for tx |
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.
Nice 👏
} | ||
// make the list of all contracts we should replace address for | ||
sc := systemcontracts.SystemContractsForChain(e.chainID) | ||
contracts := []systemcontracts.SystemContract{sc.EVMContract, sc.FungibleToken, sc.FlowToken} |
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.
Awesome 😍
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.
Very nice cleanup 💯
Co-authored-by: Ardit Marku <[email protected]>
services/requester/requester.go
Outdated
return flow.EmptyID, fmt.Errorf("failed to sign envelope: %w", err) | ||
} | ||
|
||
err = e.client.SendTransaction(ctx, *flowTx) | ||
if err != nil { | ||
err := e.client.SendTransaction(ctx, *flowTx) |
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.
err := e.client.SendTransaction(ctx, *flowTx) |
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.
@sideninja ^
General improvements to the code, addressing some todos, removing non-relevant todos, concurrently get data from network, improve balance conversions...