Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
r3v4s authored and Woongjae Lee committed May 26, 2023
1 parent 2e2a03e commit 14c1e75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NEXT_PUBLIC_API_URI='https://dev-api.gnoscan.io'
NEXT_PUBLIC_API_URI='https://api.gnoscan.io'
NEXT_PUBLIC_API_VERSION = '/v2'
NEXT_PUBLIC_CHAIN_NAME='Testnet 3'
NEXT_PUBLIC_CHAIN_ID='test3'
Expand Down
2 changes: 1 addition & 1 deletion src/common/values/constant-value.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const API_URI = process.env.NEXT_PUBLIC_API_URI ?? 'https://dev-api.gnoscan.io';
export const API_URI = process.env.NEXT_PUBLIC_API_URI ?? 'https://api.gnoscan.io';
export const API_VERSION = process.env.NEXT_PUBLIC_API_VERSION ?? '/v2';
export const GNO_CHAIN_NAME = process.env.NEXT_PUBLIC_CHAIN_NAME ?? 'Testnet 3';
export const GNO_CHAIN_ID = process.env.NEXT_PUBLIC_CHAIN_ID ?? 'test3';
Expand Down
8 changes: 4 additions & 4 deletions src/repositories/api/selector/select-transaction-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,23 +121,23 @@ function decode(str: string) {

const msg = original.msg;

const bodys: {[index: string]: string} = {};
const bodies: {[index: string]: string} = {};

for (let i = 0; i < msg.length; i++) {
if (msg[i]['@type'] !== '/vm.m_addpkg') continue;

const files = msg[i].package.Files;

for (let j = 0; j < files.length; j++) {
bodys[`{{${i}-${j}}}`] = files[j].Body;
bodies[`{{${i}-${j}}}`] = files[j].Body;
files[j] = `{{${i}-${j}}}`;
}
}

let result = JSON.stringify(original, null, 2);

for (const key of Object.keys(bodys)) {
result = result.replace(key, bodys[key]);
for (const key of Object.keys(bodies)) {
result = result.replace(key, bodies[key]);
}

return result;
Expand Down

0 comments on commit 14c1e75

Please sign in to comment.