in confidence-shared/shared.py [0:0]
def _uniffi_check_contract_api_version(lib):
# Get the bindings contract version from our ComponentInterface
bindings_contract_version = 26
# Get the scaffolding contract version by calling the into the dylib
scaffolding_contract_version = lib.ffi_confidence_shared_uniffi_contract_version()
if bindings_contract_version != scaffolding_contract_version:
raise InternalError("UniFFI contract version mismatch: try cleaning and rebuilding your project")