Skip to content

Commit a8b852d

Browse files
authored
Merge pull request #733 from RickyLB/fix/validate
breaking change in `transaction_response` method
2 parents 589fe9b + 397fcae commit a8b852d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/contract/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl ContractHelper {
7575
let record = tx
7676
.execute(client)
7777
.await?
78-
.valdiate_status(false)
78+
.validate_status(false)
7979
.get_record(client)
8080
.await?;
8181

src/transaction_response.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub struct TransactionResponse {
5959

6060
impl TransactionResponse {
6161
/// Whether the receipt/record status should be validated.
62-
pub fn valdiate_status(&mut self, validate: bool) -> &mut Self {
62+
pub fn validate_status(&mut self, validate: bool) -> &mut Self {
6363
self.validate_status = validate;
6464
self
6565
}

0 commit comments

Comments
 (0)