validateRegistrationFee
validateRegistrationFee(
value):void
Defined in: packages/synapse-core/src/sp-registry/validation.ts:131
Validate the value (msg.value) passed to registerProvider against
SERVICE_PROVIDER_REGISTRY.REGISTRATION_FEE_WEI so callers get a client-side
error instead of a simulate revert.
The value is mirrored from ServiceProviderRegistry.sol. If the contract
upgrades and changes the fee, callers should omit value and let the SDK
fetch the live REGISTRATION_FEE() instead.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value | bigint |
Returns
Section titled “Returns”void
Throws
Section titled “Throws”Errors ValidationError when value !== SERVICE_PROVIDER_REGISTRY.REGISTRATION_FEE_WEI