From 673c364ffd276a2bb24d0477f6a0c5c96be8da00 Mon Sep 17 00:00:00 2001 From: lmorgan824 <63170084+lmorgan824@users.noreply.github.com> Date: Sun, 28 Aug 2022 07:48:05 -0500 Subject: [PATCH] Update asset.js This would allow only 'XLM' as an asset code for native. Currently, the constructor allows both 'xlm' and 'XLM' to pass through. --- src/asset.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/asset.js b/src/asset.js index 946ea4fcd..b77527856 100644 --- a/src/asset.js +++ b/src/asset.js @@ -30,6 +30,8 @@ export class Asset { throw new Error('Issuer is invalid'); } + if(code === 'xlm') code = 'XLM'; + this.code = code; this.issuer = issuer; }