From 80f76ae97372ea074ce660dbcaffd97c648ece22 Mon Sep 17 00:00:00 2001 From: Determinant Date: Sat, 19 Sep 2020 19:32:37 -0400 Subject: fully support C<->X asset transfer --- plugin/evm/service.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugin/evm/service.go') diff --git a/plugin/evm/service.go b/plugin/evm/service.go index f50d66a..c34a59d 100644 --- a/plugin/evm/service.go +++ b/plugin/evm/service.go @@ -329,10 +329,9 @@ func (service *AvaxAPI) Export(_ *http.Request, args *ExportArgs, response *api. return fmt.Errorf("couldn't get addresses controlled by the user: %w", err) } - assetID := service.vm.ctx.AVAXAssetID // Create the transaction tx, err := service.vm.newExportTx( - assetID, // AssetID + args.AssetID, // AssetID uint64(args.Amount), // Amount chainID, // ID of the chain to send the funds to to, // Address -- cgit v1.2.3