Currently, we hard-coded Zero value to the EVM call in hooks everywhere here: https://github.com/tangle-network/tangle/blob/768987dd745e7155a84b7eaec93c55c00273ad1a/pallets/services/src/functions.rs#L92-L94 and other places. We should allow the caller to specify how much TNT or any other asset, by assetId, and amount to be passed to the Blueprint manager, which would be translated to an ERC20 Token address and amount. This value is automatically deduced from the caller account and got transferred to the BlueprintManager smart contract balance.
Currently, we hard-coded
Zero
value to the EVM call in hooks everywhere here: https://github.com/tangle-network/tangle/blob/768987dd745e7155a84b7eaec93c55c00273ad1a/pallets/services/src/functions.rs#L92-L94 and other places. We should allow the caller to specify how muchTNT
or any other asset, byassetId
, andamount
to be passed to the Blueprint manager, which would be translated to an ERC20 Tokenaddress
andamount
. This value is automatically deduced from the caller account and got transferred to the BlueprintManager smart contract balance.