git.delta.rocks / unique-network / refs/commits / ab84a20b6c75

difftreelog

fix custom_signature_over_max_size.stderr

Daniel Shiposha2022-12-09parent: #cd16ad3.patch.diff
in: master

1 file changed

modifiedcrates/evm-coder/tests/build_failed/custom_signature_over_max_size.stderrdiffbeforeafterboth
after · crates/evm-coder/tests/build_failed/custom_signature_over_max_size.stderr
1warning: unused import: `make_signature`2 --> tests/build_failed/custom_signature_over_max_size.rs:5:23  |45 |     make_signature,5  |     ^^^^^^^^^^^^^^6  |7  = note: `#[warn(unused_imports)]` on by default89error[E0080]: evaluation of `<std::vec::Vec<MaxSize> as Name>::SIGNATURE` failed10  --> tests/build_failed/custom_signature_over_max_size.rs:19:311   |1219 |         evm_coder::make_signature!(new nameof(T::SIGNATURE) fixed("[]"));13   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the length is 256 but the index is 25614   |15   = note: this error originates in the macro `$crate::make_signature` which comes from the expansion of the macro `evm_coder::make_signature` (in Nightly builds, run with -Z macro-backtrace for more info)1617error[E0080]: evaluation of constant value failed18  --> tests/build_failed/custom_signature_over_max_size.rs:30:2919   |2030 | const NAME: SignatureUnit = <Vec<MaxSize>>::SIGNATURE;21   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors