From f2963dd14458e35f1aa909eaeb458636fb7a8e51 Mon Sep 17 00:00:00 2001 From: Bjarte Stien Karlsen Date: Tue, 6 Aug 2024 11:50:31 +0200 Subject: [PATCH] use pub --- lib/find.json | 12 ++++++------ lib/package.json | 2 +- scripts/getFlowToUSD.cdc | 2 +- scripts/getNamePriceInFlow.cdc | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/find.json b/lib/find.json index a59c9872..3db830f6 100644 --- a/lib/find.json +++ b/lib/find.json @@ -279,7 +279,7 @@ } }, "getFlowToUSD": { - "code": "import FIND from 0x179b6b1cb6755e31\n\naccess(all) fun main():UFix64 {\n\n return FIND.getLatestPrice()\n}", + "code": "import FIND from 0x179b6b1cb6755e31\n\npub fun main():UFix64 {\n\n return FIND.getLatestPrice()\n}", "spec": { "order": [], "parameters": {} @@ -651,7 +651,7 @@ } }, "getNamePriceInFlow": { - "code": "import FIND from 0x179b6b1cb6755e31\n\naccess(all) fun main(_ name:String):UFix64 {\n\n return FIND.calculateCostInFlow(name)\n}", + "code": "import FIND from 0x179b6b1cb6755e31\n\npub fun main(_ name:String):UFix64 {\n\n return FIND.calculateCostInFlow(name)\n}", "spec": { "order": [ "name" @@ -3718,7 +3718,7 @@ } }, "getFlowToUSD": { - "code": "import FIND from 0x097bafa4e0b48eef\n\naccess(all) fun main():UFix64 {\n\n return FIND.getLatestPrice()\n}", + "code": "import FIND from 0x097bafa4e0b48eef\n\npub fun main():UFix64 {\n\n return FIND.getLatestPrice()\n}", "spec": { "order": [], "parameters": {} @@ -4199,7 +4199,7 @@ } }, "getNamePriceInFlow": { - "code": "import FIND from 0x097bafa4e0b48eef\n\naccess(all) fun main(_ name:String):UFix64 {\n\n return FIND.calculateCostInFlow(name)\n}", + "code": "import FIND from 0x097bafa4e0b48eef\n\npub fun main(_ name:String):UFix64 {\n\n return FIND.calculateCostInFlow(name)\n}", "spec": { "order": [ "name" @@ -7335,7 +7335,7 @@ } }, "getFlowToUSD": { - "code": "import FIND from 0x35717efbbce11c74\n\naccess(all) fun main():UFix64 {\n\n return FIND.getLatestPrice()\n}", + "code": "import FIND from 0x35717efbbce11c74\n\npub fun main():UFix64 {\n\n return FIND.getLatestPrice()\n}", "spec": { "order": [], "parameters": {} @@ -7803,7 +7803,7 @@ } }, "getNamePriceInFlow": { - "code": "import FIND from 0x35717efbbce11c74\n\naccess(all) fun main(_ name:String):UFix64 {\n\n return FIND.calculateCostInFlow(name)\n}", + "code": "import FIND from 0x35717efbbce11c74\n\npub fun main(_ name:String):UFix64 {\n\n return FIND.calculateCostInFlow(name)\n}", "spec": { "order": [ "name" diff --git a/lib/package.json b/lib/package.json index 53861fb8..948035e6 100644 --- a/lib/package.json +++ b/lib/package.json @@ -1,6 +1,6 @@ { "name": "@findonflow/find-flow-contracts", - "version": "3.8.2", + "version": "3.8.3", "description": "Cadence transactions and scripts to work with https://find.xyz ", "main": "index.js", "scripts": { diff --git a/scripts/getFlowToUSD.cdc b/scripts/getFlowToUSD.cdc index befc06fa..94491324 100644 --- a/scripts/getFlowToUSD.cdc +++ b/scripts/getFlowToUSD.cdc @@ -1,6 +1,6 @@ import "FIND" -access(all) fun main():UFix64 { +pub fun main():UFix64 { return FIND.getLatestPrice() } diff --git a/scripts/getNamePriceInFlow.cdc b/scripts/getNamePriceInFlow.cdc index b12da2bd..6df867c4 100644 --- a/scripts/getNamePriceInFlow.cdc +++ b/scripts/getNamePriceInFlow.cdc @@ -1,6 +1,6 @@ import "FIND" -access(all) fun main(_ name:String):UFix64 { +pub fun main(_ name:String):UFix64 { return FIND.calculateCostInFlow(name) }