Skip to content

Commit 9068f59

Browse files
committed
update to Cadence v0.12.1
1 parent 305b113 commit 9068f59

5 files changed

Lines changed: 12 additions & 9 deletions

File tree

crypto/internal/crypto/hash/hash_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,3 @@ func TestKmac128(t *testing.T) {
173173
checkBytes(t, input, expected[i], hash)
174174
}
175175
}
176-

crypto/internal/crypto/hash/kmac.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
18+
1919
package hash
2020

2121
import (

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/btcsuite/btcd v0.0.0-20171128150713-2e60448ffcc6
88
github.com/ethereum/go-ethereum v1.9.9
99
github.com/golang/protobuf v1.4.2
10-
github.com/onflow/cadence v0.11.2
10+
github.com/onflow/cadence v0.12.1
1111
github.com/onflow/flow/protobuf/go/flow v0.1.8
1212
github.com/pkg/errors v0.8.1
1313
github.com/stretchr/objx v0.1.1 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416/go.mod h1:NBIhNtsFMo
219219
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
220220
github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=
221221
github.com/olekukonko/tablewriter v0.0.2-0.20190409134802-7e037d187b0c/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=
222-
github.com/onflow/cadence v0.11.2 h1:BPHKE0b2fpGX1YOa03rY8hoCanV0PPtnBmGKNdDh7lI=
223-
github.com/onflow/cadence v0.11.2/go.mod h1:8NwJGO535nnY/+QWEMDc2rhvOFChToWQ9Bg7fUIIc/I=
222+
github.com/onflow/cadence v0.12.1 h1:1XzcjUHPYMj1NrIrYddoj0aE6vegRoX/99+cy8/RDPc=
223+
github.com/onflow/cadence v0.12.1/go.mod h1:8NwJGO535nnY/+QWEMDc2rhvOFChToWQ9Bg7fUIIc/I=
224224
github.com/onflow/flow/protobuf/go/flow v0.1.8 h1:jBR8aXEL0MOh3gVJmCr0KYXmtG3JUBhzADonKkYE6oI=
225225
github.com/onflow/flow/protobuf/go/flow v0.1.8/go.mod h1:kRugbzZjwQqvevJhrnnCFMJZNmoSJmxlKt6hTGXZojM=
226226
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=

test/entities.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
"time"
2525

2626
"github.com/onflow/cadence"
27+
"github.com/onflow/cadence/runtime/common"
2728

2829
"github.com/onflow/flow-go-sdk"
2930
"github.com/onflow/flow-go-sdk/crypto"
@@ -218,11 +219,12 @@ func (g *Events) New() flow.Event {
218219
defer func() { g.count++ }()
219220

220221
identifier := fmt.Sprintf("FooEvent%d", g.count)
221-
typeID := "test." + identifier
222+
223+
location := common.StringLocation("test")
222224

223225
testEventType := &cadence.EventType{
224-
TypeID: typeID,
225-
Identifier: identifier,
226+
Location: location,
227+
QualifiedIdentifier: identifier,
226228
Fields: []cadence.Field{
227229
{
228230
Identifier: "a",
@@ -241,8 +243,10 @@ func (g *Events) New() flow.Event {
241243
cadence.NewString("foo"),
242244
}).WithType(testEventType)
243245

246+
typeID := location.TypeID(identifier)
247+
244248
event := flow.Event{
245-
Type: typeID,
249+
Type: string(typeID),
246250
TransactionID: g.ids.New(),
247251
TransactionIndex: g.count,
248252
EventIndex: g.count,

0 commit comments

Comments
 (0)