Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix undefined balance and dockerfile #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions jsclient/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,20 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install gnupg -y

RUN echo "deb [arch=amd64] http://repo.sawtooth.me/ubuntu/ci bionic universe" >> /etc/apt/sources.list \
RUN apt-get update && apt-get install -y gnupg \
&& echo "deb [arch=amd64] http://repo.sawtooth.me/ubuntu/ci bionic universe" >> /etc/apt/sources.list \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8AA7AF1F1091A5FD \
&& echo "deb [arch=amd64] http://repo.sawtooth.me/ubuntu/chime/stable bionic universe" >> /etc/apt/sources.list \
&& apt-get install -y -q --no-install-recommends \
&& apt update && apt-get install -y -q --no-install-recommends \
apt-utils \
&& apt-get install -y -q \
ca-certificates \
build-essential \
python3-sawtooth-cli \
curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* && apt-get clean \
&& sawtooth keygen jack && sawtooth keygen jain

RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get install -y nodejs
Expand Down
2 changes: 1 addition & 1 deletion jsclient/public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function showBalance() {
var userId = sessionStorage.getItem('userId');
$.post('/balance', { userId: userId },
function (data, textStatus, jqXHR) {
document.getElementById("balanceCheck").innerHTML ="Your balance is:" + "<br />" + data.balance;
document.getElementById("balanceCheck").innerHTML ="Your balance is:" + "<br />" + data.balance | 0;
},
'json');
}
Expand Down