Skip to content

Commit

Permalink
Merge pull request #100 from TalismanSociety/fix/ledger-signed-transa…
Browse files Browse the repository at this point in the history
…ction

fix: include withSignedTransaction
  • Loading branch information
chrisling-dev authored Dec 13, 2024
2 parents 66700fb + 6998c79 commit f387f96
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/multisig/src/domains/chains/extrinsics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export const useCancelAsMulti = (tx?: Transaction) => {

let completed = false
const unsubscribe = await extrinsic
.signAndSend(depositorAddress.toSs58(tx.multisig.chain), { signer }, result => {
.signAndSend(depositorAddress.toSs58(tx.multisig.chain), { signer, withSignedTransaction: true }, result => {
try {
handleSubmittableResultError(result)
const hasSuccessEvent = result.events.some(({ event: { method } }) => method === 'ExtrinsicSuccess')
Expand Down Expand Up @@ -357,7 +357,7 @@ export const useAsMulti = (extensionAddress: Address | undefined, t?: Transactio
if (metadata) await injectMetadata(metadata)

const unsubscribe = await asMultiExtrinsic
.signAndSend(extensionAddress.toSs58(multisig.chain), { signer }, result => {
.signAndSend(extensionAddress.toSs58(multisig.chain), { signer, withSignedTransaction: true }, result => {
try {
handleSubmittableResultError(result)
const hasSuccessEvent = result.events.some(
Expand Down Expand Up @@ -505,7 +505,7 @@ export const useAsMultiThreshold1 = (
if (extensionMetadata) await injectMetadata(extensionMetadata)

const unsubscribe = await asMultiThreshold1Extrinsic
.signAndSend(extensionAddress.toSs58(multisig.chain), { signer }, result => {
.signAndSend(extensionAddress.toSs58(multisig.chain), { signer, withSignedTransaction: true }, result => {
try {
handleSubmittableResultError(result)

Expand Down Expand Up @@ -671,7 +671,7 @@ export const useApproveAsMulti = (

let savedMetadata = false
const unsubscribe = await extrinsic
.signAndSend(extensionAddress.toSs58(multisig.chain), { signer }, result => {
.signAndSend(extensionAddress.toSs58(multisig.chain), { signer, withSignedTransaction: true }, result => {
try {
handleSubmittableResultError(result)

Expand Down Expand Up @@ -759,7 +759,7 @@ export const useCreateProxy = (chain: Chain, extensionAddress: Address | undefin
if (metadata) await injectMetadata(metadata)

const unsubscribe = await extrinsic
.signAndSend(extensionAddress.toSs58(chain), { signer }, result => {
.signAndSend(extensionAddress.toSs58(chain), { signer, withSignedTransaction: true }, result => {
try {
handleSubmittableResultError(result)
// typically we wait for inclusion only but for create proxy we wait for finalization
Expand Down Expand Up @@ -853,7 +853,7 @@ export const useTransferProxyToMultisig = (chain: Chain) => {

// Send the batch call
const unsubscribe = await signerBatchCall
.signAndSend(extensionAddress.toSs58(chain), { signer }, result => {
.signAndSend(extensionAddress.toSs58(chain), { signer, withSignedTransaction: true }, result => {
try {
handleSubmittableResultError(result)
if (!(result?.status?.isFinalized || result.status.isInBlock)) return
Expand Down

0 comments on commit f387f96

Please sign in to comment.