diff options
| author | Adam Soltys <[email protected]> | 2020-07-27 10:03:59 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-07-27 10:04:02 -0700 |
| commit | bfb643b82b559cb4ee78c6501d339920c6df8176 (patch) | |
| tree | 8cafe80075e0bc5b2ec35e0e4def91046ddcd532 /routes/assets.js | |
| parent | 768bcc0107c98d145d4a663e8562a13666570941 (diff) | |
| download | coinos-server-bfb643b82b559cb4ee78c6501d339920c6df8176.tar.gz coinos-server-bfb643b82b559cb4ee78c6501d339920c6df8176.zip | |
add domain field to assets
Diffstat (limited to 'routes/assets.js')
| -rw-r--r-- | routes/assets.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/routes/assets.js b/routes/assets.js index 27643c0d..5f838992 100644 --- a/routes/assets.js +++ b/routes/assets.js @@ -29,13 +29,13 @@ app.post("/assets", auth, async (req, res) => { const info = await lq.getAddressInfo(asset_address); const { pubkey: issuer_pubkey } = info; - const { name, asset_amount, token_amount, precision, ticker } = req.body; - const domain = "adamsoltys.com"; + const { domain, name, asset_amount, token_amount, precision, ticker } = req.body; const version = 0; const contract = { entity: { domain }, issuer_pubkey, + domain, name, precision, ticker, @@ -113,6 +113,7 @@ app.post("/assets", auth, async (req, res) => { account = await db.Account.create( { asset, + domain, user_id, ticker, precision, @@ -152,6 +153,7 @@ app.post("/assets", auth, async (req, res) => { { asset: token, user_id, + domain, ticker: `${ticker}REISSUANCETOKEN`, precision: 8, name: `${name} Reissuance Token`, |
