Skip to content

Commit eeef856

Browse files
committed
fix: remove additional-data dependency for non-native hyperliquid onchain withdrawals
1 parent fef1170 commit eeef856

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/services/request-handler/index.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -378,17 +378,6 @@ export class RequestHandlerService {
378378

379379
case "hyperliquid-vm": {
380380
if (request.mode === "onchain") {
381-
const isNativeCurrency =
382-
request.currency === getVmTypeNativeCurrency(chain.vmType);
383-
if (!isNativeCurrency) {
384-
const additionalData = request.additionalData?.["hyperliquid-vm"];
385-
if (!additionalData) {
386-
throw externalError(
387-
"Additional data is required for generating the withdrawal request"
388-
);
389-
}
390-
}
391-
392381
({ id, encodedData, payloadId, payloadParams } =
393382
await this._submitWithdrawRequest(chain, request));
394383

0 commit comments

Comments
 (0)