0LNetworkCommunity / libra-legacy-v6

Apache License 2.0
248 stars 116 forks source link

[Bug] Error while compiling txs #1251

Closed gmbno closed 1 year ago

gmbno commented 1 year ago

🐛 Bug

3 arguments are supplied to encode_community_transfer_script_function instead of 4 required

Expected Behavior

No error

Steps To reproduce

I'm trying to run a validator, during the compilation make bins install I have the following error

Stack trace/error message

   Compiling txs v5.2.0 (/root/libra/ol/txs)
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
    --> ol/txs/src/commands/community_pay_cmd.rs:85:18
     |
85   |     let script = transaction_builder::encode_community_transfer_script_function(
     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 arguments
86   |         destination,
     |         -----------
87   |         coins,
     |         -----
88   |         memo.as_bytes().to_vec(),
     |         ------------------------ supplied 3 arguments
     |
note: function defined here
    --> /root/libra/sdk/transaction-builder/src/stdlib.rs:4590:8
     |
4590 | pub fn encode_community_transfer_script_function(
     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0061`.
error: could not compile `txs` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed
make: *** [Makefile:94: bins] Error 101
0o-de-lally commented 1 year ago

@gmbno You may be trying to build on v6 branch which is still work in progress. Checkout one of the releases by tag and try again.