Skip to content

Commit

Permalink
Update attachment export test
Browse files Browse the repository at this point in the history
  • Loading branch information
SupunS committed Apr 18, 2023
1 parent b743004 commit 30589cb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions runtime/attachments_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,12 @@ func TestAccountAttachmentExport(t *testing.T) {
import Test from 0x1
pub fun main(): &Test.A? {
let r <- Test.makeRWithA()
let a = r[Test.A]
destroy r
let acc = getAuthAccount(0x1)
acc.save(<-r, to: /storage/r)
var rRef = acc.borrow<&Test.R>(from: /storage/r)!
let a = rRef[Test.A]
return a
}
`)
Expand Down

0 comments on commit 30589cb

Please sign in to comment.