Skip to content

Commit c4da84c

Browse files
SoujanyaPonnapallino2chem
authored andcommitted
💥 Have verifier send nonce instead of just the updates (#21)
1 parent 8d77a28 commit c4da84c

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
prototool
22
node_modules
33
.github
4-
generated
4+
generated
5+
generated_ts

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rainblock/protocol",
3-
"version": "3.0.0",
3+
"version": "4.0.0",
44
"description": "Protocol Buffer Definitions for Rainblock",
55
"main": "generated_ts/index.js",
66
"types": "generated_ts/index.d.ts",

src/verifierStorage.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ message UpdateMsg {
2828
message UpdateOp {
2929
bytes account = 1; // 20 bytes, BE account number
3030
bytes balance = 2; // 32 bytes, BE new balance. May not be present if the balance is unchanged.
31-
uint32 updates = 3; // Increment by one for each nonce update. May not be present if the nonce is unchanged.
31+
uint64 nonce = 3; // New nonce. May not be present if the nonce is unchanged.
3232
repeated StorageUpdate storage_update = 4; // Storage updates, if any.
3333
bytes code = 5; // Code bytes, only applicable for creation of a contract account.
3434
bool deleted = 6; // Set if the account was deleted. All other fields, if present, are ignored.

0 commit comments

Comments
 (0)