data-items-cleanup #203

Merged
lash merged 12 commits from data-items-cleanup into master 2024-12-05 16:03:50 +01:00
Member
  • Resolves issue #196
  • Resolves issue #198
- Resolves issue #196 - Resolves issue #198
Alfred-mk added 4 commits 2024-12-04 18:56:33 +01:00
Alfred-mk added 1 commit 2024-12-04 18:59:58 +01:00
Alfred-mk requested review from lash 2024-12-04 19:00:47 +01:00
Alfred-mk added 1 commit 2024-12-04 19:07:17 +01:00
lash requested changes 2024-12-05 02:13:14 +01:00
Dismissed
common/db.go Outdated
@ -33,3 +33,3 @@
DATA_ACTIVE_DECIMAL
DATA_ACTIVE_ADDRESS
DATA_TRANSACTIONS
DATA_PREFIX_SYMBOLS
Owner

Perhaps better name DATA_VOUCHER_* ?

Perhaps better name `DATA_VOUCHER_*` ?
Alfred-mk marked this conversation as resolved
common/db.go Outdated
@ -34,2 +34,3 @@
DATA_ACTIVE_ADDRESS
DATA_TRANSACTIONS
DATA_PREFIX_SYMBOLS
DATA_PREFIX_BALANCES
Owner

I would start at 256 (0x0100), and keep the DATATYPE_USERDATA prefix.

I would start at 256 (0x0100), and keep the DATATYPE_USERDATA prefix.
Alfred-mk marked this conversation as resolved
@ -86,16 +86,16 @@ func TestGetVoucherData(t *testing.T) {
spdb := storage.NewSubPrefixDb(db, []byte("vouchers"))
Owner

The prefix should be DATATYPE_USERDATA

The prefix should be `DATATYPE_USERDATA`
Alfred-mk marked this conversation as resolved
Alfred-mk added 2 commits 2024-12-05 14:31:55 +01:00
Alfred-mk added 2 commits 2024-12-05 15:02:36 +01:00
Alfred-mk requested review from lash 2024-12-05 15:03:23 +01:00
Alfred-mk changed title from data-items-cleanup to WIP: data-items-cleanup 2024-12-05 15:33:25 +01:00
lash requested changes 2024-12-05 15:46:31 +01:00
Dismissed
common/db.go Outdated
@ -36,0 +37,4 @@
DATA_VOUCHER_BALANCES
DATA_VOUCHER_DECIMALS
DATA_VOUCHER_ADDRESSES
DATA_PREFIX_TX_SENDERS
Owner

Sorry perhaps it wasn't clear. The "PREFIX" part in general is implied and a thus redundant. TX should suffice.

Sorry perhaps it wasn't clear. The "PREFIX" part in general is implied and a thus redundant. TX should suffice.
Author
Member

Apologies, I was to replace these as well. This has been done

Apologies, I was to replace these as well. This has been done
Alfred-mk marked this conversation as resolved
common/db.go Outdated
@ -71,1 +83,4 @@
}
// Convert DataTyp to []byte
func (d DataTyp) ToBytes() []byte {
Owner

So this should call IntToBytes then ;)

So this should call `IntToBytes` then ;)
Author
Member

I have set up a single function to handle both the DataTyp and int instead

I have set up a single function to handle both the DataTyp and int instead
Alfred-mk marked this conversation as resolved
Alfred-mk added 2 commits 2024-12-05 15:59:00 +01:00
Alfred-mk changed title from WIP: data-items-cleanup to data-items-cleanup 2024-12-05 16:01:50 +01:00
lash approved these changes 2024-12-05 16:03:45 +01:00
lash merged commit 316358765d into master 2024-12-05 16:03:50 +01:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: urdt/ussd#203
No description provided.