Skip to content

Commit afe75b8

Browse files
committed
Adjust compilation errors
1 parent 9c9fdab commit afe75b8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/eosrpc/history.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ defmodule EOSRPC.History do
1818
Retrieve a transaction from the blockchain.
1919
"""
2020
def get_transaction(transaction_id) do
21-
"/get_transaction" |> url() |> post_request(%{id: transaction_id})
21+
"/get_transaction" |> url() |> post(%{id: transaction_id})
2222
end
2323

2424
def get_transaction!(transaction_id) do
@@ -31,11 +31,11 @@ defmodule EOSRPC.History do
3131
def get_actions(account_name, pos \\ 0, offset \\ 100) do
3232
"/get_actions"
3333
|> url()
34-
|> post_request(%{account_name: account_name, pos: pos, offset: offset})
34+
|> post(%{account_name: account_name, pos: pos, offset: offset})
3535
end
3636

3737
def get_actions!(account_name, pos \\ 0, offset \\ 100) do
38-
unwrap_or_raise(get_actions(account, pos, offset))
38+
unwrap_or_raise(get_actions(account_name, pos, offset))
3939
end
4040

4141
@doc """

lib/eosrpc/wallet.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ defmodule EOSRPC.Wallet do
129129
|> post([transaction, keys, chain_id])
130130
end
131131
def sign_transaction!(transaction, keys, chain_id) do
132-
unwrap_or_raise(sign_transaction(transaction, key, chain_id))
132+
unwrap_or_raise(sign_transaction(transaction, keys, chain_id))
133133
end
134134

135135
def url(url),

0 commit comments

Comments
 (0)