Skip to content
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

Fix typos #81

Merged
merged 1 commit into from
May 6, 2022
Merged
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
4 changes: 2 additions & 2 deletions lib/eth/abi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# Provides the {Eth} module.
module Eth

# Provides a Ruby implementation of the Ethereum Applicatoin Binary Interface (ABI).
# Provides a Ruby implementation of the Ethereum Application Binary Interface (ABI).
# ref: https://docs.soliditylang.org/en/develop/abi-spec.html
module Abi
extend self
Expand All @@ -44,7 +44,7 @@ class ValueOutOfBounds < StandardError; end
# @return [String] the encoded ABI data.
def encode(types, args)

# prase all types
# parse all types
parsed_types = types.map { |t| Type.parse(t) }

# prepare the "head"
Expand Down
2 changes: 1 addition & 1 deletion lib/eth/abi/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Provides the {Eth} module.
module Eth

# Provides a Ruby implementation of the Ethereum Applicatoin Binary Interface (ABI).
# Provides a Ruby implementation of the Ethereum Application Binary Interface (ABI).
module Abi

# Provides a module to decode transaction log events.
Expand Down
2 changes: 1 addition & 1 deletion lib/eth/abi/type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Provides the {Eth} module.
module Eth

# Provides a Ruby implementation of the Ethereum Applicatoin Binary Interface (ABI).
# Provides a Ruby implementation of the Ethereum Application Binary Interface (ABI).
module Abi

# Provides a class to handle and parse common ABI types.
Expand Down
2 changes: 1 addition & 1 deletion lib/eth/chain.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def to_v(recovery_id, chain_id = nil)
return v
end

# Converst a `v` value into a chain ID. This does not work for legacy signatures
# Converts a `v` value into a chain ID. This does not work for legacy signatures
# with `v < 36` that do not conform with EIP-155.
#
# @param v [Integer] the signature's `v` value.
Expand Down
2 changes: 1 addition & 1 deletion lib/eth/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def is_mined_tx?(hash)
# Waits for an transaction to be mined by the connected chain.
#
# @param hash [String] the transaction hash.
# @return [String] the transactin hash once the transaction is mined.
# @return [String] the transaction hash once the transaction is mined.
# @raise [Timeout::Error] if it's not mined within 5 minutes.
def wait_for_tx(hash)
start_time = Time.now
Expand Down
4 changes: 2 additions & 2 deletions lib/eth/rlp/sedes/binary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Binary
# A singleton class for binary values of fixed length.
class << self

# Create a serializable bianry of fixed size.
# Create a serializable binary of fixed size.
#
# @param l [Integer] the fixed size of the binary.
# @param allow_empty [Boolean] indicator wether empty binaries should be allowed.
Expand All @@ -47,7 +47,7 @@ def valid_type?(obj)
end
end

# Create a serializable bianry of variable size.
# Create a serializable binary of variable size.
#
# @param min_length [Integer] the minimum size of the binary.
# @param max_length [Integer] the maximum size of the binary.
Expand Down
2 changes: 1 addition & 1 deletion lib/eth/tx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class ParameterError < TypeError; end
# value, data, access_list)
# - EIP-2930: chain_id, nonce, gas_price, gas_limit, access_list(, from, to,
# value, data)
# - Legacy: nonce, gas_price, gas_lmit(, from, to, value, data)
# - Legacy: nonce, gas_price, gas_limit(, from, to, value, data)
#
# @param params [Hash] all necessary transaction fields.
# @param chain_id [Integer] the EIP-155 Chain ID (legacy transactions only).
Expand Down
2 changes: 1 addition & 1 deletion spec/eth/eip712_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

describe Eip712 do

# The EIP-712 domain specifcation descriptor.
# The EIP-712 domain specification descriptor.
subject(:eip712_domain) {
[
{ :name => "name", :type => "string" },
Expand Down