Skip to content

Commit

Permalink
fix fill up storage
Browse files Browse the repository at this point in the history
  • Loading branch information
bjartek committed Jan 5, 2023
1 parent 36681e8 commit 9577d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ transaction(recipient: Address, amount: UFix64) {
func (o *OverflowState) FillUpStorage(accountName string) *OverflowState {

capacity := o.GetFreeCapacity(accountName)
length := capacity - 50165 //we cannot fill up all of storage since we need flow to pay for the transaction that fills it up
length := capacity - 50500 //we cannot fill up all of storage since we need flow to pay for the transaction that fills it up

err := o.UploadString(randomString(length), accountName)
if err != nil {
Expand Down

0 comments on commit 9577d3c

Please sign in to comment.