As I get further into the tutorial, I keep getting confused about the "extrapolation" of different variables. I understand what it does but am wondering what the logical reasoning behind this syntactical sugar is. Also, what is this method of extrapolation called?
Here is some of the confusing code:
module.exports = async ({ getNamedAccounts, deployments }),
const { networkConfig } = require("../helper-hardhat-config"),
const { network } = require("hardhat"),
const { deployer } = await getNamedAccounts.
basically, everything that uses {} when declaring a variable/parameter.
As I get further into the tutorial, I keep getting confused about the "extrapolation" of different variables. I understand what it does but am wondering what the logical reasoning behind this syntactical sugar is. Also, what is this method of extrapolation called?
Here is some of the confusing code: module.exports = async ({ getNamedAccounts, deployments }), const { networkConfig } = require("../helper-hardhat-config"), const { network } = require("hardhat"), const { deployer } = await getNamedAccounts.
basically, everything that uses {} when declaring a variable/parameter.
Thanks!!