sui
sui copied to clipboard
[Wallet BUG] The same transaction can be successful with another Wallet, but it won't work with Sui Wallet. It looks like a BUG
Uncaught (in promise) Error: [WalletError] Transaction failed with the following error. Encountered error when calling RpcTxnDataSerialize for a moveCall transaction for address 43f814c4ef6f3639b0f27454e01e26343b0175fc for transaction {
"data": {
"arguments": [
"0xab5b6afe3cc19a771ce121cae97000cf48fda0c7",
[
"0x9385648f2366957837f4c4abcb8e935a5eeab927"
],
[
"0x840772178fb8a8dce6b16fa0a51150c9d613a27b"
],
20000,
49995
],
"function": "add_liquidity",
"gasBudget": 10000,
"module": "stable_swap",
"packageObjectId": "0xfd82e9eb4aad230a87128fc1b563ffac1f9a6aad",
"typeArguments": [
"0xc22869df25ff976c72a7d0795121c4637ae1ed94::usdc::USDC",
"0xc22869df25ff976c72a7d0795121c4637ae1ed94::usdt::USDT"
]
},
"kind": "moveCall"
}: Error: RPC Error: Could not serialize argument of type U64 at 3 into u64. Got error: Unexpected arg 20000 for expected type u64
Stack backtrace:
0: anyhow::__private::format_err
1: sui_json::SuiJsonValue::to_move_value
2: sui_json::SuiJsonValue::to_bcs_bytes
3: sui_json::resolve_call_arg
4: <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::try_fold
5: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter
6: core::iter::adapters::try_process
7: sui_json::resolve_move_function_args
8: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
9: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
10: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
11: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
12: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
13: <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
14: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
15: <futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll
16: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
17: <tower_http::cors::ResponseFuture<F> as core::future::future::Future>::poll
18: hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T>::poll_loop
19: hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T>::poll_catch
20: <hyper::server::conn::upgrades::UpgradeableConnection<I,S,E> as core::future::future::Future>::poll
21: <tokio::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
22: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
23: <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
24: <jsonrpsee_server::future::DriverSelect<R,F> as core::future::future::Future>::poll
25: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
26: tokio::runtime::task::core::Core<T,S>::poll
27: tokio::runtime::task::harness::Harness<T,S>::poll
28: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
29: tokio::runtime::scheduler::multi_thread::worker::Context::run
30: tokio::runtime::scheduler::multi_thread::worker::run
31: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
32: tokio::runtime::task::core::Core<T,S>::poll
33: tokio::runtime::task::harness::Harness<T,S>::poll
34: tokio::runtime::blocking::pool::Inner::run
35: std::sys_common::backtrace::__rust_begin_short_backtrace
36: core::ops::function::FnOnce::call_once{{vtable.shim}}
37: std::sys::unix::thread::Thread::new::thread_start
38: start_thread
Hi uvd,
Thanks for testing out the Sui wallet. Currently, the Sui wallet is still under development. This means that sometimes, some bugs can slip in. The bugs are often solved a couple of days later. Should you want instant feedback on the challenges you face, I'd recommend the Sui Discord. The community is often more responsive on wallet issues there. Deleting and reinstalling the wallet could also help when the network was recently restarted.
Have a wonderful day.