Skip to content

Add Potlock contract #507

Add Potlock contract

Add Potlock contract #507

Triggered via pull request October 24, 2024 14:43
Status Failure
Total duration 2m 50s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 2 warnings
[clippy] contracts/potlock/src/potlock_interactions.rs#L26: contracts/potlock/src/potlock_interactions.rs#L26
error[E0425]: cannot find value `payment_for_adding_pot` in this scope --> contracts/potlock/src/potlock_interactions.rs:26:50 | 26 | self.fee_token_identifier().get() == payment_for_adding_pot.token_identifier, | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[clippy] contracts/potlock/src/potlock_interactions.rs#L30: contracts/potlock/src/potlock_interactions.rs#L30
error[E0425]: cannot find value `payment_for_adding_pot` in this scope --> contracts/potlock/src/potlock_interactions.rs:30:40 | 30 | self.fee_amount().get() == payment_for_adding_pot.amount, | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[clippy] contracts/potlock/src/potlock_storage.rs#L75: contracts/potlock/src/potlock_storage.rs#L75
error[E0618]: expected function, found `multiversx_sc::types::EsdtTokenPayment<<Self as multiversx_sc::contract_base::ContractBase>::Api>` --> contracts/potlock/src/potlock_interactions.rs:22:13 | 19 | let fee_payment = self.call_value().single_esdt(); | ----------- `fee_payment` has type `multiversx_sc::types::EsdtTokenPayment<<Self as multiversx_sc::contract_base::ContractBase>::Api>` ... 22 | fee_payment().get() == fee_payment, | ^^^^^^^^^^^-- | | | call expression requires function | ::: contracts/potlock/src/potlock_storage.rs:75:1 | 75 | #[multiversx_sc::module] | ------------------------ this function of the same name is available here, but it's shadowed by the local binding
build / build
Process completed with exit code 1.
[clippy] contracts/potlock/src/potlock_interactions.rs#L1: contracts/potlock/src/potlock_interactions.rs#L1
warning: unused import: `__wasm__endpoints__::fee_payment` --> contracts/potlock/src/potlock_interactions.rs:1:5 | 1 | use __wasm__endpoints__::fee_payment; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
build / build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/