Skip to content

Commit

Permalink
feat: add Predicate wasm test (#1167)
Browse files Browse the repository at this point in the history
  • Loading branch information
hal3e authored Oct 23, 2023
1 parent 45149e2 commit 8121443
Show file tree
Hide file tree
Showing 18 changed files with 556 additions and 528 deletions.
4 changes: 2 additions & 2 deletions docs/src/wallets/signing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Once you've instantiated your wallet in an unlocked state using one of the previously discussed methods, you can sign a message with `wallet.sign_message`. Below is a full example of how to sign and recover a message.

```rust,ignore
{{#include ../../../packages/fuels-accounts/src/lib.rs:sign_message}}
{{#include ../../../packages/fuels-accounts/src/account.rs:sign_message}}
```

## Signing a transaction
Expand All @@ -15,5 +15,5 @@ To sign a _transaction builder_ use the `wallet.sign_transaction`. Below is a fu
> Note: When you sign a transaction builder the secret key is stored inside it and will not be resolved until you call `build()`!
```rust,ignore
{{#include ../../../packages/fuels-accounts/src/lib.rs:sign_tx}}
{{#include ../../../packages/fuels-accounts/src/account.rs:sign_tx}}
```
11 changes: 5 additions & 6 deletions packages/fuels-accounts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,25 @@ description = "Fuel Rust SDK accounts."
async-trait = { workspace = true, default-features = false }
chrono = { workspace = true }
elliptic-curve = { workspace = true, default-features = false }
eth-keystore = { workspace = true }
fuel-core-client = { workspace = true, features = ["default"] }
eth-keystore = { workspace = true, optional = true }
fuel-crypto = { workspace = true, features = ["random"] }
fuel-tx = { workspace = true }
fuel-types = { workspace = true, features = ["random"] }
fuel-vm = { workspace = true }
fuels-core = { workspace = true }
fuel-core-client = { workspace = true, optional = true }
fuels-core = { workspace = true, default-features = false }
hex = { workspace = true, default-features = false, features = ["std"] }
rand = { workspace = true, default-features = false }
semver = { workspace = true }
tai64 = { workspace = true, features = ["serde"] }
thiserror = { workspace = true, default-features = false }
tokio = { workspace = true, features = ["full"] }
tokio = { workspace = true, features = ["full"], optional = true}
tracing = { workspace = true }
zeroize = { workspace = true, features = ["derive"] }

[dev-dependencies]
hex = { workspace = true, default-features = false, features = ["std"] }
tempfile = { workspace = true }

[features]
default = ["std"]
std = ["fuels-core/std"]
std = ["fuels-core/std", "dep:tokio", "fuel-core-client/default", "dep:eth-keystore"]
Loading

0 comments on commit 8121443

Please sign in to comment.