diff --git a/Cargo.lock b/Cargo.lock index 7f7d29e..1cb83d0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -59,6 +59,12 @@ dependencies = [ "memchr", ] +[[package]] +name = "allocator-api2" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5" + [[package]] name = "android-tzdata" version = "0.1.1" @@ -220,6 +226,7 @@ dependencies = [ "miniz_oxide", "object", "rustc-demangle", + "serde", ] [[package]] @@ -263,6 +270,9 @@ name = "bitflags" version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07" +dependencies = [ + "serde", +] [[package]] name = "bitvec" @@ -285,12 +295,6 @@ dependencies = [ "generic-array", ] -[[package]] -name = "borrown" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "008b57b368e638ed60664350ea4f2f3647a0192173478df2736cc255a025a796" - [[package]] name = "bs58" version = "0.5.0" @@ -566,9 +570,9 @@ checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" [[package]] name = "crypto-bigint" -version = "0.5.3" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "740fe28e594155f10cfc383984cbefd529d7396050557148f79cb0f621204124" +checksum = "28f85c3514d2a6e64160359b45a3918c3b4178bcbf4ae5d03ab2d02e521c479a" dependencies = [ "generic-array", "rand_core", @@ -912,9 +916,9 @@ dependencies = [ [[package]] name = "fiat-crypto" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f69037fe1b785e84986b4f2cbcf647381876a00671d25ceef715d7812dd7e1dd" +checksum = "53a56f0780318174bad1c127063fd0c5fdfb35398e3cd79ffaab931a6c79df80" [[package]] name = "fixed-hash" @@ -938,8 +942,8 @@ dependencies = [ "anyhow", "clap", "eth-keystore", - "fuel-crypto", - "fuel-types", + "fuel-crypto 0.41.0", + "fuel-types 0.41.0", "fuels", "fuels-core", "futures", @@ -982,20 +986,20 @@ dependencies = [ [[package]] name = "fuel-asm" -version = "0.35.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77ac38b692cf1d259c4576e96969ddc1b21880f3059744a730d1677b6f9fd4df" +version = "0.42.0" +source = "git+https://github.com/FuelLabs/fuel-vm/?branch=master#c1252996aafed25e2eadd5e5081dfe4e4086fb2b" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.4.1", + "fuel-types 0.42.0", "serde", "strum", ] [[package]] name = "fuel-core-chain-config" -version = "0.20.8" +version = "0.21.0-rc.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86e8f361f44dafc02207c26b0c1929f39525dd1603418aad607dec6ca900053d" +checksum = "f24062f263b2c0a859f1b62f32630467996add3f2347811c4ecbeb3c046b96de" dependencies = [ "anyhow", "bech32", @@ -1004,7 +1008,6 @@ dependencies = [ "hex", "itertools 0.10.5", "postcard", - "rand", "serde", "serde_json", "serde_with 1.14.0", @@ -1013,9 +1016,9 @@ dependencies = [ [[package]] name = "fuel-core-client" -version = "0.20.8" +version = "0.21.0-rc.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f39aab47a2b77b830884a9abfdba11d165281ba855f07e109177e56c8a962962" +checksum = "394bb7e9f2e36fc75e99d3f15262f80fd674216e998db0e6df4381bfc338f5dc" dependencies = [ "anyhow", "cynic", @@ -1027,6 +1030,7 @@ dependencies = [ "hyper-rustls 0.24.2", "itertools 0.10.5", "reqwest", + "schemafy_lib", "serde", "serde_json", "tai64", @@ -1036,9 +1040,9 @@ dependencies = [ [[package]] name = "fuel-core-metrics" -version = "0.20.8" +version = "0.21.0-rc.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b1098234b4e1db6ba9d7abddd72bb8f3148018991dae3050422bd407f126889" +checksum = "ff514c14252298c4610130324f02d74e6020c22db7d26dd8794f25f3827a8fd2" dependencies = [ "axum", "once_cell", @@ -1051,9 +1055,9 @@ dependencies = [ [[package]] name = "fuel-core-poa" -version = "0.20.8" +version = "0.21.0-rc.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e60448e02f22fe1de577b0056ca43e25caa02762f75c2d1be38559e671e89899" +checksum = "79d7ee829701efe7dee266b058f46cc2804efb4efe85cb1b4feb3c8a9387b600" dependencies = [ "anyhow", "async-trait", @@ -1068,9 +1072,9 @@ dependencies = [ [[package]] name = "fuel-core-services" -version = "0.20.8" +version = "0.21.0-rc.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37fed9fd24eb93aef5f4fb4b66a5f47c04501c62a8a95e738aeb61c47f7553a7" +checksum = "2f0b6fd4ad69b60b0be16ed5161a274977da278151d12d393ff2c48a50841257" dependencies = [ "anyhow", "async-trait", @@ -1083,21 +1087,21 @@ dependencies = [ [[package]] name = "fuel-core-storage" -version = "0.20.8" +version = "0.21.0-rc.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1548a301f2b7f4777242468348d7306030bfae50e7d5a56ac7e6615c4f145b09" +checksum = "b02b4f2e5745224b568db68ab62fe51d4fc429590cd48b6b0c340a1034fc625b" dependencies = [ "anyhow", + "derive_more", "fuel-core-types", "fuel-vm", - "thiserror", ] [[package]] name = "fuel-core-types" -version = "0.20.8" +version = "0.21.0-rc.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e837844e4f034658ff229517f9eb81aafa62cb316fd3465268ee6f822d1647e2" +checksum = "800c3b82dc025ffaaec836ad801656bb24308f9b868688336cf8bb99adbf36a8" dependencies = [ "anyhow", "derive_more", @@ -1111,16 +1115,16 @@ dependencies = [ [[package]] name = "fuel-crypto" -version = "0.35.4" +version = "0.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2b934310e10a975ae3698c54e973125345c5f77a246bb8700e1658d8c4d12cf" +checksum = "52c1a032a03b1bf57bc5c3bd281cd67237f96431e77820fb0aba4c190c5412f4" dependencies = [ - "borrown", "coins-bip32", "coins-bip39", "ecdsa", "ed25519-dalek", - "fuel-types", + "fuel-types 0.41.0", + "k256", "lazy_static", "p256", "rand", @@ -1131,38 +1135,81 @@ dependencies = [ ] [[package]] -name = "fuel-merkle" -version = "0.35.4" +name = "fuel-crypto" +version = "0.42.0" +source = "git+https://github.com/FuelLabs/fuel-vm/?branch=master#c1252996aafed25e2eadd5e5081dfe4e4086fb2b" +dependencies = [ + "coins-bip32", + "coins-bip39", + "ecdsa", + "ed25519-dalek", + "fuel-types 0.42.0", + "k256", + "lazy_static", + "p256", + "rand", + "secp256k1", + "serde", + "sha2", + "zeroize", +] + +[[package]] +name = "fuel-derive" +version = "0.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d9ccc8b3db24d152e88b84709c151f0b647bb213ec8fa10303ab6d55bc6e39b" +checksum = "ce3a426f67fb1be14c3118e1d44e549f109924ae55fa8827a54fb1f106c6ade4" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.39", + "synstructure", +] + +[[package]] +name = "fuel-derive" +version = "0.42.0" +source = "git+https://github.com/FuelLabs/fuel-vm/?branch=master#c1252996aafed25e2eadd5e5081dfe4e4086fb2b" dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.39", + "synstructure", +] + +[[package]] +name = "fuel-merkle" +version = "0.42.0" +source = "git+https://github.com/FuelLabs/fuel-vm/?branch=master#c1252996aafed25e2eadd5e5081dfe4e4086fb2b" +dependencies = [ + "derive_more", "digest", "fuel-storage", "hashbrown 0.13.2", "hex", + "serde", "sha2", - "thiserror", ] [[package]] name = "fuel-storage" -version = "0.35.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae188b019be59dea7f6a036c46daca5de8414906df1bfb0009dd379810d1976d" +version = "0.42.0" +source = "git+https://github.com/FuelLabs/fuel-vm/?branch=master#c1252996aafed25e2eadd5e5081dfe4e4086fb2b" [[package]] name = "fuel-tx" -version = "0.35.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c55b1cdcad2b54eefed5c695b8408cfc82002ea3a7529114bf6917164f757a00" +version = "0.42.0" +source = "git+https://github.com/FuelLabs/fuel-vm/?branch=master#c1252996aafed25e2eadd5e5081dfe4e4086fb2b" dependencies = [ + "bitflags 2.4.1", "derivative", + "derive_more", "fuel-asm", - "fuel-crypto", + "fuel-crypto 0.42.0", "fuel-merkle", - "fuel-types", + "fuel-types 0.42.0", + "hashbrown 0.14.2", "itertools 0.10.5", - "num-integer", "rand", "serde", "serde_json", @@ -1172,10 +1219,21 @@ dependencies = [ [[package]] name = "fuel-types" -version = "0.35.4" +version = "0.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d467a3b9deae49d7b4272b4a191b0e4b87c6ed9030a846c2d0d2c6394772832" +checksum = "7a798d25d589bceccd9714146a827227bb2d54d88fa5109a9c46b0e7381a253a" +dependencies = [ + "fuel-derive 0.41.0", + "hex", + "serde", +] + +[[package]] +name = "fuel-types" +version = "0.42.0" +source = "git+https://github.com/FuelLabs/fuel-vm/?branch=master#c1252996aafed25e2eadd5e5081dfe4e4086fb2b" dependencies = [ + "fuel-derive 0.42.0", "hex", "rand", "serde", @@ -1183,35 +1241,38 @@ dependencies = [ [[package]] name = "fuel-vm" -version = "0.35.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "781255b35b145fc39a136abfaeec15bc4556b8dbee37610d6b3eb8abe29d378b" +version = "0.42.0" +source = "git+https://github.com/FuelLabs/fuel-vm/?branch=master#c1252996aafed25e2eadd5e5081dfe4e4086fb2b" dependencies = [ "async-trait", - "bitflags 1.3.2", + "backtrace", + "bitflags 2.4.1", "derivative", + "derive_more", "ethnum", "fuel-asm", - "fuel-crypto", + "fuel-crypto 0.42.0", "fuel-merkle", "fuel-storage", "fuel-tx", - "fuel-types", + "fuel-types 0.42.0", + "hashbrown 0.14.2", "itertools 0.10.5", + "libm", "paste", + "percent-encoding", "primitive-types", - "rand", "serde", "sha3", + "static_assertions", + "strum", "tai64", - "thiserror", ] [[package]] name = "fuels" version = "0.50.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e44490a7d415295059f37a92c6f02f060d13b0293d4dd6c27b2f24d73321a0f" +source = "git+https://github.com/FuelLabs/fuels-rs?branch=hal3e/transaction-policies#931f4cfdb4fb6cf72d666a6f2d059bce3b6c985a" dependencies = [ "fuel-core-client", "fuel-tx", @@ -1225,17 +1286,16 @@ dependencies = [ [[package]] name = "fuels-accounts" version = "0.50.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "905e1b22d5c7b6ab01f05285ea61cb7e15cdcce762263db2019c192213b03c53" +source = "git+https://github.com/FuelLabs/fuels-rs?branch=hal3e/transaction-policies#931f4cfdb4fb6cf72d666a6f2d059bce3b6c985a" dependencies = [ "async-trait", "chrono", "elliptic-curve", "eth-keystore", "fuel-core-client", - "fuel-crypto", + "fuel-crypto 0.42.0", "fuel-tx", - "fuel-types", + "fuel-types 0.42.0", "fuel-vm", "fuels-core", "hex", @@ -1251,8 +1311,7 @@ dependencies = [ [[package]] name = "fuels-code-gen" version = "0.50.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99ee789e15eaff668fa41efbcd1b6e52daa1ae195c204e1c55b64dcbfc007823" +source = "git+https://github.com/FuelLabs/fuels-rs?branch=hal3e/transaction-policies#931f4cfdb4fb6cf72d666a6f2d059bce3b6c985a" dependencies = [ "Inflector", "fuel-abi-types", @@ -1267,18 +1326,18 @@ dependencies = [ [[package]] name = "fuels-core" version = "0.50.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8528f854c0e914445cefc3e5eefa7a494dd550f28b83ed965b8f9d94b5df8beb" +source = "git+https://github.com/FuelLabs/fuels-rs?branch=hal3e/transaction-policies#931f4cfdb4fb6cf72d666a6f2d059bce3b6c985a" dependencies = [ + "async-trait", "bech32", "chrono", "fuel-abi-types", "fuel-asm", "fuel-core-chain-config", "fuel-core-client", - "fuel-crypto", + "fuel-crypto 0.42.0", "fuel-tx", - "fuel-types", + "fuel-types 0.42.0", "fuel-vm", "fuels-macros", "hex", @@ -1294,8 +1353,7 @@ dependencies = [ [[package]] name = "fuels-macros" version = "0.50.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "708b35dbbbc6167f7f9821e3eaad803af1327ca987f1190dc9e87b5c4872c571" +source = "git+https://github.com/FuelLabs/fuels-rs?branch=hal3e/transaction-policies#931f4cfdb4fb6cf72d666a6f2d059bce3b6c985a" dependencies = [ "fuels-code-gen", "itertools 0.11.0", @@ -1308,15 +1366,14 @@ dependencies = [ [[package]] name = "fuels-programs" version = "0.50.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "612d79594053a247146b2fabb8a32a4c32a22e4d8fd9f57671d3ed5c3bfdd952" +source = "git+https://github.com/FuelLabs/fuels-rs?branch=hal3e/transaction-policies#931f4cfdb4fb6cf72d666a6f2d059bce3b6c985a" dependencies = [ "async-trait", "bytes", "fuel-abi-types", "fuel-asm", "fuel-tx", - "fuel-types", + "fuel-types 0.42.0", "fuels-accounts", "fuels-core", "itertools 0.11.0", @@ -1328,15 +1385,14 @@ dependencies = [ [[package]] name = "fuels-test-helpers" version = "0.50.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bff7c621bafd44735cdd5c1b3f73b7e1a153743ffcf035471fe30a63d23ddea2" +source = "git+https://github.com/FuelLabs/fuels-rs?branch=hal3e/transaction-policies#931f4cfdb4fb6cf72d666a6f2d059bce3b6c985a" dependencies = [ "fuel-core-chain-config", "fuel-core-client", "fuel-core-poa", "fuel-core-services", "fuel-tx", - "fuel-types", + "fuel-types 0.42.0", "fuels-accounts", "fuels-core", "futures", @@ -1538,6 +1594,17 @@ dependencies = [ "ahash", ] +[[package]] +name = "hashbrown" +version = "0.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f93e7192158dbcda357bdec5fb5788eebf8bbac027f3f33e719d29135ae84156" +dependencies = [ + "ahash", + "allocator-api2", + "serde", +] + [[package]] name = "heapless" version = "0.7.16" @@ -1593,9 +1660,9 @@ dependencies = [ [[package]] name = "http" -version = "0.2.10" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f95b9abcae896730d42b78e09c155ed4ddf82c07b4de772c64aee5b2d8b7c150" +checksum = "8947b1a6fad4393052c7ba1f4cd97bed3e953a95c79c92ad9b051a04611d9fbb" dependencies = [ "bytes", "fnv", @@ -1854,6 +1921,12 @@ version = "0.2.150" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" +[[package]] +name = "libm" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" + [[package]] name = "libredox" version = "0.0.2" @@ -1931,16 +2004,6 @@ dependencies = [ "windows-sys", ] -[[package]] -name = "num-integer" -version = "0.1.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9" -dependencies = [ - "autocfg", - "num-traits", -] - [[package]] name = "num-traits" version = "0.2.17" @@ -2405,23 +2468,23 @@ dependencies = [ [[package]] name = "rpassword" -version = "7.2.0" +version = "7.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6678cf63ab3491898c0d021b493c94c9b221d91295294a2a5746eacbe5928322" +checksum = "80472be3c897911d0137b2d2b9055faf6eeac5b14e324073d83bc17b191d7e3f" dependencies = [ "libc", "rtoolbox", - "winapi", + "windows-sys", ] [[package]] name = "rtoolbox" -version = "0.0.1" +version = "0.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "034e22c514f5c0cb8a10ff341b9b048b5ceb21591f31c8f44c43b960f9b3524a" +checksum = "c247d24e63230cdb56463ae328478bd5eac8b8faa8c69461a77e8e323afac90e" dependencies = [ "libc", - "winapi", + "windows-sys", ] [[package]] @@ -2447,9 +2510,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.21" +version = "0.38.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b426b0506e5d50a7d8dafcf2e81471400deb602392c7dd110815afb4eaf02a3" +checksum = "9ad981d6c340a49cdc40a1028d9c6084ec7e9fa33fcb839cab656a267071e234" dependencies = [ "bitflags 2.4.1", "errno", @@ -2556,6 +2619,32 @@ dependencies = [ "windows-sys", ] +[[package]] +name = "schemafy_core" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41781ae092f4fd52c9287efb74456aea0d3b90032d2ecad272bd14dbbcb0511b" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "schemafy_lib" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e953db32579999ca98c451d80801b6f6a7ecba6127196c5387ec0774c528befa" +dependencies = [ + "Inflector", + "proc-macro2", + "quote", + "schemafy_core", + "serde", + "serde_derive", + "serde_json", + "syn 1.0.109", +] + [[package]] name = "scopeguard" version = "1.2.0" @@ -2913,6 +3002,18 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" +[[package]] +name = "synstructure" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "285ba80e733fac80aa4270fbcdf83772a79b80aa35c97075320abfee4a915b06" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.39", + "unicode-xid", +] + [[package]] name = "system-configuration" version = "0.5.1" @@ -3267,6 +3368,12 @@ dependencies = [ "tinyvec", ] +[[package]] +name = "unicode-xid" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" + [[package]] name = "unreachable" version = "1.0.0" @@ -3436,14 +3543,15 @@ checksum = "14247bb57be4f377dfb94c72830b8ce8fc6beac03cf4bf7b9732eadd414123fc" [[package]] name = "which" -version = "4.4.2" +version = "5.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7" +checksum = "9bf3ea8596f3a0dd5980b46430f2058dfe2c36a27ccfbb1845d6fbfcd9ba6e14" dependencies = [ "either", "home", "once_cell", "rustix", + "windows-sys", ] [[package]] @@ -3564,18 +3672,18 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.7.25" +version = "0.7.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cd369a67c0edfef15010f980c3cbe45d7f651deac2cd67ce097cd801de16557" +checksum = "e97e415490559a91254a2979b4829267a57d2fcd741a98eee8b722fb57289aa0" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.7.25" +version = "0.7.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2f140bda219a26ccc0cdb03dba58af72590c53b22642577d88a927bc5c87d6b" +checksum = "dd7e48ccf166952882ca8bd778a43502c64f33bf94c12ebe2a7f08e5a0f6689f" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 756ae37..a745c40 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,13 +12,13 @@ anyhow = "1.0" clap = { version = "4.2.4", features = ["derive"] } eth-keystore = { version = "0.5" } -# Dependencies from the `fuel-vm` repository: -fuel-crypto = "0.35.4" -fuel-types = "0.35.4" +# Depednencies from the `fuel-vm` repository: +fuel-crypto = { version = "0.41.0" } +fuel-types = { version = "0.41.0" } -# Dependencies from the `fuels-rs` repository: -fuels = "0.50.1" -fuels-core = "0.50.1" +# Depednencies from the `fuels-rs` repository: +fuels = { version = "0.50.1" } +fuels-core = { version = "0.50.1" } futures = "0.3" hex = "0.4" @@ -38,3 +38,13 @@ path = "src/lib.rs" [[bin]] name = "forc-wallet" path = "src/main.rs" + +# Keep it until release of the `fuels-rs`. +[patch.crates-io] +fuels-core = { git = "https://github.com/FuelLabs/fuels-rs", branch = "hal3e/transaction-policies" } +fuels = { git = "https://github.com/FuelLabs/fuels-rs", branch = "hal3e/transaction-policies" } +fuel-crypto = { git = "https://github.com/FuelLabs/fuel-vm/", branch = "master" } +fuel-types = { git = "https://github.com/FuelLabs/fuel-vm/", branch = "master" } +fuel-asm = { git = "https://github.com/FuelLabs/fuel-vm/", branch = "master" } +fuel-tx = { git = "https://github.com/FuelLabs/fuel-vm/", branch = "master" } +fuel-vm = { git = "https://github.com/FuelLabs/fuel-vm/", branch = "master" } diff --git a/src/account.rs b/src/account.rs index 1cd91eb..a72fa0d 100644 --- a/src/account.rs +++ b/src/account.rs @@ -46,7 +46,7 @@ pub struct Account { #[derive(Debug, Args)] pub(crate) struct Fmt { /// Option for public key to be displayed as hex / bytes. - /// + /// /// pass in --as-hex for this alternative display. #[clap(long)] as_hex: bool, @@ -484,7 +484,13 @@ pub(crate) async fn transfer_cli( &to, 1, Default::default(), - TxParameters::new(transfer.gas_price, transfer.gas_limit, transfer.maturity), + TxPolicies::new( + transfer.gas_price, + None, + transfer.maturity, + None, + transfer.gas_limit, + ), ) .await?;