You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Transaction.of() validation will break when using signerUtils.transactionBodyToTransactionRequestInput when dependsOn is set to null
Reproduction URL
No response
Reproduction steps
1. Create a transaction body like this one (`dependsOn` is set to null):
{
blockRef: '0x0000000000000000',
chainTag: 16,
clauses: [
{
to: '0x0000000000000000000000000000000000000001',
value: '0x0',
data: '0x1234'
},
{
to: '0x0000000000000000000000000000000000000001',
value: '0x0',
data: '0x1234'
}
],
dependsOn: null,
expiration: 32768,
gas: 62762,
gasPriceCoef: 128,
nonce: 2876988663801153,
reserved: undefined
}
2. When passing this value to `signerUtils.transactionBodyToTransactionRequestInput`, the output is:
{
from: undefined,
chainTag: 16,
blockRef: '0x0000000000000000',
expiration: 32768,
clauses: [
{
to: '0x0000000000000000000000000000000000000001',
value: '0x0',
data: '0x1234'
},
{
to: '0x0000000000000000000000000000000000000001',
value: '0x0',
data: '0x1234'
}
],
gasPriceCoef: 128,
gas: 62762,
dependsOn: undefined,
nonce: 2876988663801153,
reserved: undefined
}
3. If this output is then passed to `Transaction.of`, internally it'll call Transaction.isValidBody, which will throw an error for a malformed body since `dependsOn` is `undefined`
Screenshots
![DESCRIPTION](LINK.png)
Logs
OS
Windows
The text was updated successfully, but these errors were encountered:
Description
Transaction.of()
validation will break when usingsignerUtils.transactionBodyToTransactionRequestInput
whendependsOn
is set to nullReproduction URL
No response
Reproduction steps
Screenshots
![DESCRIPTION](LINK.png)
Logs
OS
Windows
The text was updated successfully, but these errors were encountered: