From 1f3c0064f1b2aa89530fca4acbd2ee241d97115c Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 21 Jun 2018 01:13:58 +0200 Subject: [PATCH] Rename `Request::multicall` to `Request::new_multicall` --- CHANGELOG.md | 2 +- src/request.rs | 2 +- tests/python.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d2dd392..89e25dfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/request.rs b/src/request.rs index 53423397..b2a8b9f7 100644 --- a/src/request.rs +++ b/src/request.rs @@ -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> { Request { name: "system.multicall", diff --git a/tests/python.rs b/tests/python.rs index 324e49f8..a071b188 100644 --- a/tests/python.rs +++ b/tests/python.rs @@ -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"),