Skip to content

Commit

Permalink
Merge pull request #733 from RickyLB/fix/validate
Browse files Browse the repository at this point in the history
breaking change in `transaction_response` method
  • Loading branch information
RickyLB authored Oct 18, 2023
2 parents 589fe9b + 397fcae commit a8b852d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/contract/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl ContractHelper {
let record = tx
.execute(client)
.await?
.valdiate_status(false)
.validate_status(false)
.get_record(client)
.await?;

Expand Down
2 changes: 1 addition & 1 deletion src/transaction_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub struct TransactionResponse {

impl TransactionResponse {
/// Whether the receipt/record status should be validated.
pub fn valdiate_status(&mut self, validate: bool) -> &mut Self {
pub fn validate_status(&mut self, validate: bool) -> &mut Self {
self.validate_status = validate;
self
}
Expand Down

0 comments on commit a8b852d

Please sign in to comment.