Bug Description
withdraw3 method will throw this error in ReactNative environment.
This error is in executeUserSignedAction function.
const [finalAction, signature] = "wallet" in config
? [fullAction, await signUserSignedAction({ wallet: leader, action: fullAction, types })]
: await signMultiSigUserSigned(config, fullAction, types, walletAddress, nonce);
change to
let finalAction;
let signature;
if ("wallet" in config) {
finalAction = fullAction;
signature = await signUserSignedAction({ wallet: leader, action: fullAction, types });
} else {
[finalAction, signature] = await signMultiSigUserSigned(config, fullAction, types, walletAddress, nonce);
}
will be fine.
I don't know why, but it works.
Code to Reproduce
Environment
@nktkas/hyperliquid version: 0.32.1
- Runtime environment and its version:
- React Native
Additional Context (optional)
Bug Description
withdraw3 method will throw this error in ReactNative environment.
This error is in executeUserSignedAction function.
change to
will be fine.
I don't know why, but it works.
Code to Reproduce
Environment
@nktkas/hyperliquidversion: 0.32.1Additional Context (optional)