sway icon indicating copy to clipboard operation
sway copied to clipboard

Support configurable base_asset_id in forc plugins

Open Voxelot opened this issue 1 year ago • 3 comments

Forc tooling currently assumes a base asset id of 0x000..., however since the network supports custom base asset id's the tooling should dynamically load the base asset ID.

Voxelot avatar Mar 26 '24 17:03 Voxelot

@kayagokalp mentioned that the wallet & deployment tools use the SDK, therefore not much should be needed.

I'll leave this open for now, but it's blocked by the SDK changes. Once those changes are added, the tooling will need to switch from the BASE_ASSET_ID constant to the provider.base_asset_id() function.

dmihal avatar Mar 26 '24 17:03 dmihal

Places we manually need to fix:

  1. forc-deploy
  2. forc-tx

kayagokalp avatar May 09 '24 22:05 kayagokalp

Blocked by #5981

kayagokalp avatar May 09 '24 22:05 kayagokalp

@kayagokalp Is this unblocked?

sdankel avatar Jun 04 '24 23:06 sdankel

closed by https://github.com/FuelLabs/sway/pull/5987

kayagokalp avatar Jun 04 '24 23:06 kayagokalp

Forc clients that are interacting with node uses sdk for the most case and only part that we do things with ASSET_ID is updated to take it from the node by querying it first

kayagokalp avatar Jun 04 '24 23:06 kayagokalp