OxL Справочник OxL
РусскийEnglish

error unknown-rpc

error Стандарт: [§10.1]

impl реализует rpc, которого нет в сервисе.

What it means#

Every rpc in an impl must be declared in the service contract. rpc outside the impl of a service is rejected as well.

Example#

oxl✓ проверяется в CI
service Math { rpc twice(x: i32) -> i32 }
impl Math {
  rpc twice(x) { x * 2 }
  rpc thrice(x) { x * 3 }   // <- unknown-rpc
}
error
unknown-rpc

How to fix#

Declare the rpc in the service or remove it from the impl.

See also#

OxL 1.0.0-beta · Версия документации 1.0.0-beta© OxwaldLink · сгенерировано из Стандарта, исходников std и руководства