Remove leading '0x' from saved address.

This commit is contained in:
Spencer Ofwiti 2021-04-22 14:58:26 +03:00
parent d0e39a6fb2
commit 1c846234a3

View File

@ -43,7 +43,6 @@ function sendit(uid, envelope) {
} }
function doOne(keystore, filePath, address) { function doOne(keystore, filePath, address) {
let ethereum_address = '0x' + address;
const signer = new crdt.PGPSigner(keystore); const signer = new crdt.PGPSigner(keystore);
const j = JSON.parse(fs.readFileSync(filePath).toString()); const j = JSON.parse(fs.readFileSync(filePath).toString());
@ -54,7 +53,7 @@ function doOne(keystore, filePath, address) {
cic.Phone.toKey(phone).then((uid) => { cic.Phone.toKey(phone).then((uid) => {
const s = new crdt.Syncable(uid, ethereum_address); const s = new crdt.Syncable(uid, address);
s.setSigner(signer); s.setSigner(signer);
s.onwrap = (env) => { s.onwrap = (env) => {
sendit(uid, env); sendit(uid, env);