You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support new import syntax: In order to be consistent across all flow tools, it would be beneficial for flix to support new import syntax. This syntax does not have a contract address placeholder in the cadence code. It uses import "ContractName" which is interpreted by flow tools. The change needed is in the "dependencies" section, the contract address placeholder isn't needed. See below:
Pervious version:
dependencies: {
"0xFUNGIBLETOKENADDRESS": { // Network (mainnet || testnet) dependent locations for 0xFUNGIBLETOKENADDRESS contract.
"FungibleToken" : {
mainnet: {
address: "0xf233dcee88fe0abe", // Address of the account the contract is located.
fq_address: "A.0xf233dcee88fe0abe.FungibleToken", // Fully qualified contract identifier.
pin: "asdfasdfasdfasdfasdfasdfsadf123123123123", // Unique identifier of the interactions dependency tree.
pin_block_height: 10123123123 // Block height the pin was generated against.
},
testnet: {
address: "0x9a0766d93b6608b7",
fq_address: "A.0x9a0766d93b6608b7.FungibleToken",
pin: "asdfasdfasdfasdfasdfasdfsadf123123123123",
pin_block_height: 10123123123
}
}
}
},
New version:
dependencies: {
"FungibleToken" : {
mainnet: {
address: "0xf233dcee88fe0abe", // Address of the account the contract is located.
fq_address: "A.0xf233dcee88fe0abe.FungibleToken", // Fully qualified contract identifier.
pin: "asdfasdfasdfasdfasdfasdfsadf123123123123", // Unique identifier of the interactions dependency tree.
pin_block_height: 10123123123 // Block height the pin was generated against.
},
testnet: {
address: "0x9a0766d93b6608b7",
fq_address: "A.0x9a0766d93b6608b7.FungibleToken",
pin: "asdfasdfasdfasdfasdfasdfsadf123123123123",
pin_block_height: 10123123123
}
}
},
The text was updated successfully, but these errors were encountered:
import "ContractName"
which is interpreted by flow tools. The change needed is in the "dependencies" section, the contract address placeholder isn't needed. See below:Pervious version:
New version:
The text was updated successfully, but these errors were encountered: