From b49ffb2ae55e90fa3740ea34ac1b2b4db26f331f Mon Sep 17 00:00:00 2001 From: Tarak Ben Youssef Date: Fri, 4 Aug 2023 18:35:18 -0600 Subject: [PATCH] update flow-go version --- emulator/script_test.go | 4 +++- emulator/transaction_test.go | 1 + go.mod | 5 +++-- go.sum | 9 +++++---- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/emulator/script_test.go b/emulator/script_test.go index b3f45879..8b278aa5 100644 --- a/emulator/script_test.go +++ b/emulator/script_test.go @@ -245,7 +245,9 @@ func TestScriptExecutionLimit(t *testing.T) { }) } -func TestScriptRandom(t *testing.T) { +// TestScriptWithCadenceRandom checks Cadence's random function works +// within a script +func TestScriptWithCadenceRandom(t *testing.T) { const code = ` pub fun main() { diff --git a/emulator/transaction_test.go b/emulator/transaction_test.go index f37e8946..f641e4a1 100644 --- a/emulator/transaction_test.go +++ b/emulator/transaction_test.go @@ -2118,6 +2118,7 @@ func TestRollbackTransaction(t *testing.T) { } // TestTransactionWithCadenceRandom checks Cadence's random function works +// within a transaction func TestTransactionWithCadenceRandom(t *testing.T) { b, adapter := setupTransactionTests(t) diff --git a/go.mod b/go.mod index dd219fc3..8b584c8a 100644 --- a/go.mod +++ b/go.mod @@ -14,11 +14,11 @@ require ( github.com/logrusorgru/aurora v2.0.3+incompatible github.com/onflow/cadence v0.39.14 github.com/onflow/flow-archive v1.3.4-0.20230503192214-9e81e82d4dcc - github.com/onflow/flow-go v0.31.1-0.20230718164039-e3411eff1e9d + github.com/onflow/flow-go v0.31.1-0.20230805002948-04e12b3ea8a9 github.com/onflow/flow-go-sdk v0.41.9 github.com/onflow/flow-go/crypto v0.24.9 github.com/onflow/flow-nft/lib/go/contracts v1.1.0 - github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20230602212908-08fc6536d391 + github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20230628215638-83439d22e0ce github.com/onflow/nft-storefront/lib/go/contracts v0.0.0-20221222181731-14b90207cead github.com/prometheus/client_golang v1.16.0 github.com/psiemens/graceland v1.0.0 @@ -68,6 +68,7 @@ require ( github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/hashicorp/golang-lru v0.5.4 // indirect + github.com/hashicorp/golang-lru/v2 v2.0.2 // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/ipfs/bbloom v0.0.4 // indirect diff --git a/go.sum b/go.sum index 313dd42a..d0399257 100644 --- a/go.sum +++ b/go.sum @@ -447,6 +447,7 @@ github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc= github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/golang-lru/v2 v2.0.2 h1:Dwmkdr5Nc/oBiXgJS3CDHNhJtIHkuZ3DZF5twqnfBdU= +github.com/hashicorp/golang-lru/v2 v2.0.2/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= @@ -685,8 +686,8 @@ github.com/onflow/flow-core-contracts/lib/go/templates v1.2.3 h1:X25A1dNajNUtE+K github.com/onflow/flow-core-contracts/lib/go/templates v1.2.3/go.mod h1:dqAUVWwg+NlOhsuBHex7bEWmsUjsiExzhe/+t4xNH6A= github.com/onflow/flow-ft/lib/go/contracts v0.7.0 h1:XEKE6qJUw3luhsYmIOteXP53gtxNxrwTohgxJXCYqBE= github.com/onflow/flow-ft/lib/go/contracts v0.7.0/go.mod h1:kTMFIySzEJJeupk+7EmXs0EJ6CBWY/MV9fv9iYQk+RU= -github.com/onflow/flow-go v0.31.1-0.20230718164039-e3411eff1e9d h1:TgMEd1i/81na3uw3Dns70nCe2haB7XL+jHJzmbjypCM= -github.com/onflow/flow-go v0.31.1-0.20230718164039-e3411eff1e9d/go.mod h1:HWgs3rrr4dnCtI0vX0JUfeNyRb8+EhNVOH8A0Z7eMuw= +github.com/onflow/flow-go v0.31.1-0.20230805002948-04e12b3ea8a9 h1:XWMAJt+PztiNwkJsrrCmF2p8NaABs2HMyJiTGw9caIk= +github.com/onflow/flow-go v0.31.1-0.20230805002948-04e12b3ea8a9/go.mod h1:VJQNiOgLlte3OC55YJuLKRFWm423g02ZbenpPoX2AdM= github.com/onflow/flow-go-sdk v0.24.0/go.mod h1:IoptMLPyFXWvyd9yYA6/4EmSeeozl6nJoIv4FaEMg74= github.com/onflow/flow-go-sdk v0.41.9 h1:cyplhhhc0RnfOAan2t7I/7C9g1hVGDDLUhWj6ZHAkk4= github.com/onflow/flow-go-sdk v0.41.9/go.mod h1:e9Q5TITCy7g08lkdQJxP8fAKBnBoC5FjALvUKr36j4I= @@ -696,8 +697,8 @@ github.com/onflow/flow-go/crypto v0.24.9/go.mod h1:fqCzkIBBMRRkciVrvW21rECKq1oD7 github.com/onflow/flow-nft/lib/go/contracts v1.1.0 h1:rhUDeD27jhLwOqQKI/23008CYfnqXErrJvc4EFRP2a0= github.com/onflow/flow-nft/lib/go/contracts v1.1.0/go.mod h1:YsvzYng4htDgRB9sa9jxdwoTuuhjK8WYWXTyLkIigZY= github.com/onflow/flow/protobuf/go/flow v0.2.2/go.mod h1:gQxYqCfkI8lpnKsmIjwtN2mV/N2PIwc1I+RUK4HPIc8= -github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20230602212908-08fc6536d391 h1:6uKg0gpLKpTZKMihrsFR0Gkq++1hykzfR1tQCKuOfw4= -github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20230602212908-08fc6536d391/go.mod h1:NA2pX2nw8zuaxfKphhKsk00kWLwfd+tv8mS23YXO4Sk= +github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20230628215638-83439d22e0ce h1:YQKijiQaq8SF1ayNqp3VVcwbBGXSnuHNHq4GQmVGybE= +github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20230628215638-83439d22e0ce/go.mod h1:NA2pX2nw8zuaxfKphhKsk00kWLwfd+tv8mS23YXO4Sk= github.com/onflow/nft-storefront/lib/go/contracts v0.0.0-20221222181731-14b90207cead h1:2j1Unqs76Z1b95Gu4C3Y28hzNUHBix7wL490e61SMSw= github.com/onflow/nft-storefront/lib/go/contracts v0.0.0-20221222181731-14b90207cead/go.mod h1:E3ScfQb5XcWJCIAdtIeEnr5i5l2y60GT0BTXeIHseWg= github.com/onflow/sdks v0.5.0 h1:2HCRibwqDaQ1c9oUApnkZtEAhWiNY2GTpRD5+ftdkN8=