Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Commit

Permalink
Rename Request::multicall to Request::new_multicall
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Jun 20, 2018
1 parent 6c52c4a commit 1f3c006
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### New Features

* Add `Request::multicall` for easier execution of multiple calls via `system.multicall`
* Add `Request::new_multicall` for easier execution of multiple calls via `system.multicall`

### Bugfixes

Expand Down
2 changes: 1 addition & 1 deletion src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl<'a> Request<'a> {
///
/// [`system.multicall`]: https://mirrors.talideon.com/articles/multicall.html
#[allow(deprecated)]
pub fn multicall<'r, I>(requests: I) -> Self
pub fn new_multicall<'r, I>(requests: I) -> Self
where 'a: 'r, I: IntoIterator<Item=&'r Request<'a>> {
Request {
name: "system.multicall",
Expand Down
2 changes: 1 addition & 1 deletion tests/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fn run_tests() {
err.fault().expect("returned error was not a fault");

// perform a multicall
let result = Request::multicall(&[
let result = Request::new_multicall(&[
Request::new("pow").arg(2).arg(4),
Request::new("add").arg(2).arg(4),
Request::new("doesn't exist"),
Expand Down

0 comments on commit 1f3c006

Please sign in to comment.