Skip to content

Error occurred while building uniffi #105

@m-greatbcdev

Description

@m-greatbcdev

While I was trying "cargo build --release" in vdr/uniffi directory, following error corrupted

error[E0599]: no method named `is_txn_reverted` found for struct `web3::types::TransactionReceipt` in the current scope
   --> D:\workspace\indy-besu\vdr\src\client\implementation\web3\client.rs:103:20
    |
103 |         if receipt.is_txn_reverted() {
    |                    ^^^^^^^^^^^^^^^ method not found in `TransactionReceipt`

error[E0609]: no field `revert_reason` on type `web3::types::TransactionReceipt`
   --> D:\workspace\indy-besu\vdr\src\client\implementation\web3\client.rs:104:50
    |
104 |             if let Some(revert_reason) = receipt.revert_reason {
    |                                                  ^^^^^^^^^^^^^ unknown field
    |
    = note: available fields are: `transaction_hash`, `transaction_index`, `block_hash`, `block_number`, `from` ... and 10 others

I need advice from assistants

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions