Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Fix remaining eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Sep 24, 2019
1 parent f7c9586 commit 8257188
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ globals:
Cookies: true
nearConfig: true
nearlib: true
near: true
walletAccount: true
contract: true
testSettings: true


6 changes: 3 additions & 3 deletions blank_project/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ async function initContract() {
window.accountId = window.walletAccount.getAccountId();

// Initializing our contract APIs by contract name and configuration.
window.contract = await near.loadContract(nearConfig.contractName, {
// NOTE: This configuration only needed while NEAR is still in development
// View methods are read only. They don't modify the state, but usually return some value.
window.contract = await near.loadContract(nearConfig.contractName, { // eslint-disable-line require-atomic-updates
// NOTE: This configuration only needed while NEAR is still in development
// View methods are read only. They don't modify the state, but usually return some value.
viewMethods: ['whoSaidHi'],
// Change methods can modify the state. But you don't receive the returned value when called.
changeMethods: ['sayHi'],
Expand Down
1 change: 0 additions & 1 deletion gulp-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
// "--measure"
// ], callback);
// }
var path = require('path');

function compile(inputFile, outputFile, callback) {
const asc = getAsc();
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ exports.stake = async function(options) {
console.log(`Staking ${options.amount} on ${options.accountId} with public key = ${options.publicKey}.`);
const near = await connect(options);
const account = await near.account(options.accountId);
const result = await account.stake(options.publicKey, BigInt(options.amount));
const result = await account.stake(options.publicKey, options.amount);
console.log(inspectResponse(result));
};

Expand Down

0 comments on commit 8257188

Please sign in to comment.