Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tsa1
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Renzo Mauro Ontivero
tsa1
Commits
988a62d3
Commit
988a62d3
authored
5 years ago
by
Renzo Mauro Ontivero
⚽
Browse files
Options
Downloads
Patches
Plain Diff
habilitando bfa
parent
0bb75a03
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/controllers/BfaController.js
+5
-5
5 additions, 5 deletions
api/controllers/BfaController.js
with
5 additions
and
5 deletions
api/controllers/BfaController.js
+
5
−
5
View file @
988a62d3
...
...
@@ -7,13 +7,13 @@
const
Web3
=
require
(
'
web3
'
);
const
Tx
=
require
(
'
ethereumjs-tx
'
);
const
base64
=
require
(
'
nodejs-base64-encode
'
);
const
url
=
sails
.
config
.
custom
.
urlRpc
Ropsten
;
const
url
=
sails
.
config
.
custom
.
urlRpc
Bfa
;
const
web3
=
new
Web3
(
url
);
const
accountAddress
=
sails
.
config
.
custom
.
accountAddress
Ropsten
;
const
contractABI
=
sails
.
config
.
custom
.
contractABI
Ropsten
;
const
contractAddress
=
sails
.
config
.
custom
.
contractAddress
Ropsten
;
const
accountAddress
=
sails
.
config
.
custom
.
accountAddress
Bfa
;
const
contractABI
=
sails
.
config
.
custom
.
contractABI
Bfa
;
const
contractAddress
=
sails
.
config
.
custom
.
contractAddress
Bfa
;
const
privateKey
=
Buffer
.
from
(
sails
.
config
.
custom
.
privateKey
Ropsten
,
sails
.
config
.
custom
.
privateKey
Bfa
,
'
hex
'
,
);
const
contract
=
new
web3
.
eth
.
Contract
(
contractABI
,
contractAddress
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment