Skip to content

Commit

Permalink
Rename 'gasPrice()' to 'eth_gasPrice()' in example for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanasa committed Sep 28, 2023
1 parent 7b927e5 commit 6c051b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/motoko/Main.mo
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ actor class Main() {

public func example() : async Text {

let a = await rpc.gasPrice();
let a = await rpc.eth_gasPrice();
let b = await rpc.request("eth_gasPrice", #Null, 1000);

debug_show (a, b);
Expand Down
2 changes: 1 addition & 1 deletion lib/motoko/lib.mo
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ module {
};
};

public func gasPrice() : async Nat {
public func eth_gasPrice() : async Nat {
let result = request("eth_gasPrice", #Null, 256);
// TODO: decode
assert false;
Expand Down

0 comments on commit 6c051b2

Please sign in to comment.