Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/chain-watch/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func chainWatch(provider *ethrpc.Provider, monitorOptions ethmonitor.Options) (*

// TODO: we can implement a program, chain-watch-test
// which will assert ethmonitor behaviour
// checking the event source to ensure its correct, etc.......
// checking the event source to ensure it's correct, etc.......

wg.Wait()
// select {
Expand Down
2 changes: 1 addition & 1 deletion cmd/ethkit/abigen.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (c *abigen) generateGo(artifact ethartifact.RawArtifact) error {
// the "bytecode" value is what we use to deploy a new contract.
//
// Whereas the "deployedBytecode" is the runtime code of the contract, and can be used to verify
// the contract bytecode once its been deployed. For our purposes of generating a client, we only
// the contract bytecode once it's been deployed. For our purposes of generating a client, we only
// need the constructor code, so we use the "bytecode" value.

if c.fUseV2 {
Expand Down
4 changes: 2 additions & 2 deletions ethcoder/typed_data_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (t *TypedData) UnmarshalJSON(data []byte) error {
return err
}

// Ensure the "EIP712Domain" type is defined. In case its not defined
// Ensure the "EIP712Domain" type is defined. In case it's not defined
// we will add it to the types map
_, ok := raw.Types["EIP712Domain"]
if !ok {
Expand All @@ -165,7 +165,7 @@ func (t *TypedData) UnmarshalJSON(data []byte) error {

// Ensure primary type is defined
if raw.PrimaryType == "" {
// detect primary type if its unspecified
// detect primary type if it's unspecified
primaryType, err := typedDataDetectPrimaryType(raw.Types.Map(), raw.Message)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion ethgas/ema.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func NewEMA(decay float64) *EMA {
}

// EMA is a moving average with exponential decay. It doesn't have any concept of weight
// so it will only work on homogenous (evenly spaced) time series.
// so it will only work on homogeneous (evenly spaced) time series.
// ema := NewEMA(0.1818)
// avg1 = ema.Tick(price1)
// avg2 = ema.Tick(price2)
Expand Down
2 changes: 1 addition & 1 deletion ethmonitor/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (c *Chain) GetBlockByNumber(blockNum uint64, event Event) *Block {
// GetTransaction searches our canonical chain of blocks (where each block points at previous),
// and returns the transaction. Aka, searches our chain for mined transactions. Keep in mind
// transactions can still be reorged, but you can check the blockNumber and compare it against
// the head to determine if its final.
// the head to determine if it's final.
func (c *Chain) GetTransaction(txnHash common.Hash) (*types.Transaction, Event) {
c.mu.Lock()
defer c.mu.Unlock()
Expand Down