Skip to content

Commit 4ded510

Browse files
committed
hide the "implicit string cast from ShortString to string" compiler warning
1 parent d07d6a4 commit 4ded510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web3.pas

+1-1
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ procedure TCustomWeb3.LatestPrice(const callback: TProc<Double, IError>);
701701
const coincap = procedure(const chain: TChain)
702702
begin
703703
if chain.Symbol <> '' then
704-
web3.coincap.price(chain.Symbol, callback)
704+
web3.coincap.price(string(chain.Symbol), callback)
705705
else
706706
callback(0, TError.Create('Price feed does not exist on %s', [chain.Name]));
707707
end;

0 commit comments

Comments
 (0)