2 ARTWORK.NUMBER.INDEX = 1001
3 contract.storage[ARTWORK.NUMBER.INDEX] = 1
7 ARTWORK.NUMBER.INDEX = 1001
9 // Make sure we have enough gas to run the contact
10 if tx.value < tx.basefee * 400:
14 // Get the number of the work to produce
15 number = contract.storage[ARTWORK.NUMBER.INDEX]
16 // Store the number to use for the next work
17 contract.storage[ARTWORK.NUMBER.INDEX] = contract.storage[ARTWORK.NUMBER.INDEX] + 1
19 return([ARTWORK, number], 2)