LimeChain / gosemble

Go-based framework for building Polkadot/Substrate-compatible runtimes. 🧱
https://limechain.github.io/gosemble/
Apache License 2.0
12 stars 5 forks source link

gossamer: compatibility issues #407

Open radkomih opened 6 months ago

radkomih commented 6 months ago

Setup:

radkomih commented 5 months ago

With Gossamer node in polkadot.js:

test extrinsic call

 target=runtime message=RUNTIME API: TransactionPaymentApi_query_info   ext_logging_log_version_1   pkg=runtime module=wazero
2024-04-14T18:43:27+03:00 CRITICAL target=runtime message=invalid 'NextConfigDescriptor' type   ext_logging_log_version_1   pkg=runtime module=wazero
2024-04-14T18:43:28+03:00 WARN     target=runtime message=RUNTIME API: Metadata_metadata    ext_logging_log_version_1   pkg=runtime module=wazero
2024-04-14T18:43:28+03:00 WARN     target=runtime message=RUNTIME API: TaggedTransactionQueue_validate_transaction  ext_logging_log_version_1   pkg=runtime module=wazero
2024-04-14T18:43:28+03:00 CRITICAL target=runtime message=invalid 'NextConfigDescriptor' type   ext_logging_log_version_1   pkg=runtime module=wazero
2024-04-14T18:43:28+03:00 WARN     failed to create listener (method=author_submitAndWatchExtrinsic): handling submitted extrinsic: running runtime function: wasm error: unreachable

send some amount from an account with zero balance

2024-04-10T13:55:53+03:00 WARN     failed to create listener (method=author_submitAndWatchExtrinsic): handling submitted extrinsic: running runtime function: wasm error: unreachable
wasm stack trace:
    .(github.com/LimeChain/gosemble/frame/balances.Module).Withdraw(i32,i32,i32,i32,i32,i32,i32,i32,i32,i32,i64,i64,i32)
    .(github.com/LimeChain/gosemble/frame/transaction_payment/extensions.chargeTransaction).WithdrawFee(i32,i32,i32,i32,i32,i32,i64,i64,i64,i64)
    .(github.com/LimeChain/gosemble/frame/transaction_payment/extensions.ChargeTransactionPayment).withdrawFee(i32,i64,i64,i32,i32,i32,i32,i32,i32,i32,i32,i32,i32)
    .(github.com/LimeChain/gosemble/frame/executive.module).ValidateTransaction(i32,i32,i32,i32,i32,i32,i32,i32,i32,i32,i32,i32,i32,i32,i32,i32)
    .TaggedTransactionQueue_validate_transaction.command_export(i32,i32) i64    pkg=rpc/subscription

this happens from time to time

2024-04-09T17:50:33+03:00 CRITICAL target=runtime message=Timestamp must be updated once in the block   ext_logging_log_version_1   pkg=runtime module=wazero
radkomih commented 5 months ago

Events does not show up in the "recent events" section of the UI

radkomih commented 5 months ago

Certain storage items seem to have incorrect metadata (in polkadot-js)

babe.authorVrfRandomness: Option<[u8;32]> - <unknown>
babe.epochStart: (u64,u64) - <unknown>
babe.nextEpochConfig: Option<SpConsensusBabeBabeEpochConfiguration> - <unknown>
babe.initialized: Option<Option<SpConsensusBabeDigestsPreDigest>> - null
babe.underConstruction: [u8;32] - <unknown>