paritytech / asset-transfer-api

Typescript API aiming to provide clear, and simple to use tools for transferring assets across common good parachains.
Apache License 2.0
44 stars 11 forks source link

fix: resolve tx calls based on current runtime #375

Closed marshacb closed 8 months ago

marshacb commented 8 months ago

Description

This PR refactors existing call selection logic into the resolveCall method on the AssetTransferAPI which determines the correct call type and call based on information obtained from the current runtime.

Changes

closes: #368

TarikGul commented 8 months ago

There are some errors when I run yarn lint but they were not introduced from this PR. Just in case you would like to fix them.

It's probably something specific to your local machine since the CI is passing.